Deprecated: New code should use [async_utils::hanging_get::server::HangingGet
].
A Send
wrapper for a HangingGet
that can receive messages via an async channel.
The HangingGetBroker
is the primary way of implementing server side hanging get using
this library. It manages all state and reacts to inputs sent over channels.
A Publisher
is used to make changes to the state contained within a HangingGetBroker
.
It is designed to be cheaply cloned and Send
.
A Subscriber
can be used to register observation requests with the HangingGetBroker
.
These observations will be fulfilled when the state changes or immediately the first time
a Subscriber
registers an observation.
A cheaply copyable handle that can be used to register new Subscriber
s with
the HangingGetBroker
.