apscheduler.executors.asyncio
¶
Module Contents¶
-
class
apscheduler.executors.asyncio.
AsyncIOExecutor
¶ Runs jobs in the default executor of the event loop.
If the job function is a native coroutine function, it is scheduled to be run directly in the event loop as soon as possible. All other functions are run in the event loop’s default executor which is usually a thread pool.
Plugin alias:
asyncio
-
shutdown
(wait=True)¶ Shuts down this executor.
- Parameters
wait (bool) –
True
to wait until all submitted jobs have been executed
-
start
(scheduler, alias)¶ Called by the scheduler when the scheduler is being started or when the executor is being added to an already running scheduler.
- Parameters
scheduler (apscheduler.schedulers.base.BaseScheduler) – the scheduler that is starting this executor
alias (str|unicode) – alias of this executor as it was assigned to the scheduler
-