MCPcopy Index your code
hub / github.com/RustPython/RustPython / add_child_handler

Method add_child_handler

Lib/asyncio/unix_events.py:869–872  ·  view source on GitHub ↗
(self, pid, callback, *args)

Source from the content-addressed store, hash-verified

867 """
868
869 def add_child_handler(self, pid, callback, *args):
870 loop = events.get_running_loop()
871 pidfd = os.pidfd_open(pid)
872 loop._add_reader(pidfd, self._do_wait, pid, pidfd, callback, args)
873
874 def _do_wait(self, pid, pidfd, callback, args):
875 loop = events.get_running_loop()

Callers 1

Calls 1

_add_readerMethod · 0.45

Tested by

no test coverage detected