asyncio.AbstractEventLoop.add_signal_handler()

AbstractEventLoop.add_signal_handler(signum, callback, *args)

Add a handler for a signal.

Raise ValueError if the signal number is invalid or uncatchable. Raise RuntimeError if there is a problem setting up the handler.

Use functools.partial to pass keywords to the callback.

doc_python
2016-10-07 17:26:25
Comments
Leave a Comment

Please login to continue.