Skip to main content

Module runtime

Module runtime 

Source
Expand description

Async client facade and runner skeleton. Async client facade and runner skeleton.

This module establishes the TDLib-style host shape: cheap cloneable handle, single owner runner, bounded command queue, and broadcast committed events. Transport, sync, store, and transaction managers plug into this runner instead of being spread across bridges or agents.

Structs§

ClientRunner
Single-owner async client runner.
InlineClient
Cheap cloneable handle for apps, bridges, agents, and tests.
InlineClientBuilder
Builder for an InlineClient runtime.
InlineClientRuntime
Built client runtime before the runner is hosted.

Enums§

ClientCommandError
Errors returned by the async client handle before an operation reaches the backend.
ClientRequestError
Errors returned by typed client operations.

Constants§

DEFAULT_COMMAND_QUEUE_CAPACITY
Default bounded command queue capacity.
DEFAULT_EVENT_QUEUE_CAPACITY
Default broadcast event queue capacity.