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§
- Client
Runner - Single-owner async client runner.
- Inline
Client - Cheap cloneable handle for apps, bridges, agents, and tests.
- Inline
Client Builder - Builder for an
InlineClientruntime. - Inline
Client Runtime - Built client runtime before the runner is hosted.
- Lossless
Event Delivery - One lossless event held durably until its single consumer acknowledges it.
- Lossless
Event Receiver - Single-consumer bounded stream for hosts that must not silently lose committed lossless client events.
- Reconnect
Policy - Reconnect/backoff policy for the long-lived backend event receiver.
Enums§
- Client
Command Error - Errors returned by the async client handle before an operation reaches the backend.
- Client
Request Error - 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.