Module scheduler (1.0.2)

Schedulers provide means to schedule callbacks asynchronously.

These are used by the subscriber to call the user-provided callback to process each message.

Classes

Scheduler

Scheduler()

Abstract base class for schedulers.

Schedulers are used to schedule callbacks asynchronously.

ThreadScheduler

ThreadScheduler(executor=None)

A thread pool-based scheduler.

This scheduler is useful in typical I/O-bound message processing.

Parameter
NameDescription
executor concurrent.futures.ThreadPoolExecutor

An optional executor to use. If not specified, a default one will be created.