Skip to content

Commit

Permalink
docs: Add docs for AbstractChildProcess methods
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Jan 11, 2021
1 parent ae01871 commit 634fd18
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/aiotools/fork.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,21 @@ class AbstractChildProcess(metaclass=ABCMeta):

@abstractmethod
def send_signal(self, signum: int) -> None:
"""
Send a UNIX signal to the child process.
If the child process is already terminated, it will log
a warning message and return.
"""
raise NotImplementedError

@abstractmethod
async def wait(self) -> int:
"""
Wait until the child process terminates or reclaim the child process' exit
code if already terminated.
If there are other coroutines that has waited the same process, it may
return 255 and log a warning message.
"""
raise NotImplementedError


Expand Down

0 comments on commit 634fd18

Please sign in to comment.