MCPcopy Create free account
hub / github.com/base/base / state_subscribe

Method state_subscribe

crates/consensus/engine/src/task_queue/core.rs:76–78  ·  view source on GitHub ↗

Returns a receiver that can be used to listen to engine state updates.

(&self)

Source from the content-addressed store, hash-verified

74
75 /// Returns a receiver that can be used to listen to engine state updates.
76 pub fn state_subscribe(&self) -> tokio::sync::watch::Receiver<EngineState> {
77 self.state_sender.subscribe()
78 }
79
80 /// Returns a receiver that can be used to listen to engine queue length updates.
81 pub fn queue_length_subscribe(&self) -> tokio::sync::watch::Receiver<usize> {

Callers

nothing calls this directly

Calls 1

subscribeMethod · 0.45

Tested by

no test coverage detected