async_utils::hanging_get

Module server

Source
Expand description

Server-side hanging get implementation.

See crate::hanging_get::server::HangingGet for usage documentation.

Structsยง

  • A broker of updates to some state, using the hanging get pattern.
  • A HangingGetInner object manages some internal state S and notifies observers of type O when their view of the state is outdated.
  • A Publisher is used to make changes to the state contained within a HangingGet. It is designed to be cheaply cloned and Send.
  • A Subscriber can be used to register observation requests with the HangingGet. These will be notified when the state changes or immediately the first time a Subscriber registers an observation.