hololinked.core.eventloop.scheduler.AsyncScheduler
Bases: Scheduler
Scheduler class to schedule the operations of a thing in an async loop.
Source code in repo/hololinked/hololinked/core/eventloop/scheduler.py
Functions
__init__
Source code in repo/hololinked/hololinked/core/eventloop/scheduler.py
dispatch_job
Store the job and start both halves of it as tasks on the EventLoop's own asyncio loop.
Onto that loop, never the caller's: a submission from a protocol server's thread
must not end up running a Thing's coordination on that server's loop.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
Job
|
the operation to run, and the future that answers whoever submitted it |
required |