Skip to main content

Module runtime

Module runtime 

Source
Expand description

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

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.
LosslessEventReceiver
Single-consumer bounded stream for hosts that must not silently lose committed lossless client events.
ReconnectPolicy
Reconnect/backoff policy for the long-lived backend event receiver.

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.
DEFAULT_LOSSLESS_EVENT_QUEUE_CAPACITY
Default bounded queue capacity for the optional single lossless consumer.
DEFAULT_MAX_CONCURRENT_REQUESTS
Default maximum number of concurrent backend requests.