Internal API Reference¶
Note
Internal APIs are subject to rapid change even across minor releases. This page exists to help users modify and extend the library.
Constants¶
Pollers¶
Latch¶
Logging¶
See also mitogen.core.IoLoggerProtocol
.
Stream, Side & Protocol¶
Connection & Options¶
Import Mechanism¶
Module Finders¶
Routing Management¶
Timer Management¶
Context ID Allocation¶
Child Implementation¶
Process Management¶
Helper Functions¶
Subprocess Functions¶
Helpers¶
Signals¶
Mitogen contains a simplistic signal mechanism to decouple its components. When a signal is fired by an instance of a class, functions registered to receive it are called back.
Warning
As signals execute on the Broker thread, and without exception handling, they are generally unsafe for consumption by user code, as any bugs could trigger crashes and hangs for which the broker is unable to forward logs, or ensure the buggy context always shuts down on disconnect.
Functions¶
List¶
These signals are used internally by Mitogen.
Class |
Name |
Description |
---|---|---|
|
|
Fired on the Broker thread when disconnection is detected. |
|
|
Fired on the Broker thread when broker shutdown begins. |
|
|
Fired on the Broker thread during shutdown (???) |
|
|
Fired when |
|
|
Fired after Broker.shutdown() is called, but before |
|
|
Fired after Broker.shutdown() is called. |
|
|
Fired immediately prior to the broker thread exit. |