Skip to content

Commit fd3493f

Browse files
committed
doc fix
1 parent fc97370 commit fd3493f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

trio_asyncio/loop.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,12 @@ async def _waitpid(self, pid, callback, *args):
141141
callback(pid, returncode, *args)
142142

143143
def add_child_handler(self, pid, callback, *args):
144+
"""Add a callback to run when a child process terminates."""
144145
h = self._loop.run_trio(self._waitpid, pid, callback, *args)
145146
self._callbacks[pid] = h
146147

147148
def remove_child_handler(self, pid):
149+
"""Remove the callback to run when a child process terminates."""
148150
h = self._callbacks.pop(pid, None)
149151
if h is None:
150152
return False

0 commit comments

Comments
 (0)