Debian Codegraph @

docs/modules/schedulers/blocking.rst

raw
1 :mod:`apscheduler.schedulers.blocking`
2 ======================================
3
4 .. automodule:: apscheduler.schedulers.blocking
5
6 API
7 ---
8
9 .. autoclass:: BlockingScheduler
10 :show-inheritance:
11
12
13 Introduction
14 ------------
15
16 BlockingScheduler is the simplest possible scheduler. It runs in the foreground, so when you call
17 :meth:`~apscheduler.schedulers.blocking.BlockingScheduler.start`, the call never returns.
18
19 BlockingScheduler can be useful if you want to use APScheduler as a standalone scheduler (e.g. to build a daemon).
20
21 .. list-table::
22 :widths: 1 4
23
24 * - Default executor
25 - :class:`~apscheduler.executors.pool.PoolExecutor`
26 * - External dependencies
27 - none
28 * - Example
29 - ``examples/schedulers/blocking.py``
30 (`view online <https://github.com/agronholm/apscheduler/tree/3.x/examples/schedulers/blocking.py>`_).