class documentation
class _MultiprocessingSharedStateManager(SharedStateManager): (source)
Constructor: _MultiprocessingSharedStateManager(mgr, queue_poller_executor)
Undocumented
Method | __init__ |
Undocumented |
Method | new |
Create a threading.Event that can be used across processes. |
Async Method | register |
Register a heartbeat function. |
Async Method | unregister |
Unregisters a previously registered heartbeater for the task token. This should also flush any pending heartbeats. |
Method | _heartbeat |
Undocumented |
Instance Variable | _heartbeat |
Undocumented |
Instance Variable | _heartbeat |
Undocumented |
Instance Variable | _heartbeats |
Undocumented |
Instance Variable | _mgr |
Undocumented |
Instance Variable | _queue |
Undocumented |
Inherited from SharedStateManager
:
Static Method | create |
Create a shared state manager from a multiprocessing manager. |
def __init__(self, mgr:
multiprocessing.managers.SyncManager
, queue_poller_executor: concurrent.futures.Executor
):
(source)
¶
Undocumented
async def register_heartbeater(self, task_token:
bytes
, heartbeat: Callable[ ..., None]
) -> SharedHeartbeatSender
:
(source)
¶
Register a heartbeat function.
Parameters | |
taskbytes | Unique task token for the heartbeater. |
heartbeat:Callable[ | Function that should be called when the resulting sender is sent a heartbeat. |
Returns | |
SharedHeartbeatSender | A sender that can be pickled for use in another process. |