Signal
— Signal handle¶
-
class
pyuv.
Signal
(loop)¶ Parameters: loop ( Loop
) – loop object where this handle runs (accessible throughSignal.loop
).Signal
handles register for the specified signal and notify the use about the signal’s occurrence through the specified callback.-
start
(callback, signum)¶ Parameters: - callback (callable) – Function that will be called when the specified signal is received.
- signum (int) – Specific signal that this handle listens to.
Start the
Signal
handle.Callback signature:
callback(signal_handle, signal_num)
.
-
stop
()¶ Stop the
Signal
handle.
-