Lines Matching refs:watcher

198         with events.get_child_watcher() as watcher:
199 if not watcher.is_active():
202 # prevents subprocess execution if the watcher
212 watcher.add_child_handler(transp.get_pid(),
838 process must be done within a 'with' block to allow the watcher to suspend
843 with watcher:
845 watcher.add_child_handler(proc.pid, callback)
850 Since child watcher objects may catch the SIGCHLD signal and call
874 """Attach the watcher to an event loop.
876 If the watcher was previously attached to an event loop, then it is
884 """Close the watcher.
891 """Return ``True`` if the watcher is active and is used by the event loop.
893 Return True if the watcher is installed and ready to handle process exit
900 """Enter the watcher's context and allow starting new processes
906 """Exit the watcher's context"""
911 """Child watcher implementation using Linux's pid file descriptors.
913 This child watcher polls process file descriptors (pidfds) to await child
915 child watcher implementation. It doesn't require signals or threads, doesn't
942 'from a child watcher with pending handlers',
1012 'from a child watcher with pending handlers',
1042 """'Safe' child watcher implementation.
1109 logger.warning("Child watcher got an unexpected pid: %r",
1116 """'Fast' child watcher implementation.
1221 """A watcher that doesn't require running loop in the main thread.
1289 "restore to default handler on watcher close.")
1325 logger.warning("Child watcher got an unexpected pid: %r",
1346 """Threaded child watcher implementation.
1348 The watcher uses a thread per process
1354 The watcher has O(1) complexity, its performance doesn't depend
1435 """UNIX event loop policy with a watcher for child processes."""
1452 As a side effect, if a child watcher was set before, then calling
1454 the child watcher.
1464 """Get the watcher for child processes.
1473 def set_child_watcher(self, watcher):
1474 """Set the watcher for child processes."""
1476 assert watcher is None or isinstance(watcher, AbstractChildWatcher)
1481 self._watcher = watcher