Lines Matching refs:watcher
185 with events.get_child_watcher() as watcher:
192 watcher.add_child_handler(transp.get_pid(),
776 process must be done within a 'with' block to allow the watcher to suspend
781 with watcher:
783 watcher.add_child_handler(proc.pid, callback)
788 Since child watcher objects may catch the SIGCHLD signal and call
812 """Attach the watcher to an event loop.
814 If the watcher was previously attached to an event loop, then it is
822 """Close the watcher.
829 """Enter the watcher's context and allow starting new processes
835 """Exit the watcher's context"""
860 'from a child watcher with pending handlers',
901 """'Safe' child watcher implementation.
925 "the child watcher does not have a loop attached")
973 logger.warning("Child watcher got an unexpected pid: %r",
980 """'Fast' child watcher implementation.
1026 "the child watcher does not have a loop attached")
1090 """UNIX event loop policy with a watcher for child processes."""
1108 As a side effect, if a child watcher was set before, then calling
1110 the child watcher.
1120 """Get the watcher for child processes.
1129 def set_child_watcher(self, watcher):
1130 """Set the watcher for child processes."""
1132 assert watcher is None or isinstance(watcher, AbstractChildWatcher)
1137 self._watcher = watcher