asyncworker.signals package
Contents
asyncworker.signals package#
Subpackages#
Submodules#
asyncworker.signals.base module#
- class asyncworker.signals.base.Freezable[código fonte]#
Base:
object
- async freeze()[código fonte]#
- property frozen: bool#
- class asyncworker.signals.base.Signal(owner: asyncworker.signals.base.Freezable)[código fonte]#
Base:
collections.UserList
,asyncio.locks.Event
Coroutine-based signal implementation tha behaves as an asyncio.Event.
To connect a callback to a signal, use any list method.
Signals are fired using the send() coroutine, which takes named arguments.
- async send(*args, **kwargs)[código fonte]#
Sends data to all registered receivers.