MCPcopy Create free account
hub / github.com/akash-network/node / Bus

Interface Bus

pubsub/bus.go:24–29  ·  view source on GitHub ↗

Bus is an async event bus that allows subscriptions to behave as a bus themselves. When an event is published, it is sent to all subscribers asynchronously - a subscriber cannot block other subscribers. NOTE: this should probably be in util/event or something (not in provider/event)

Source from the content-addressed store, hash-verified

22//
23// NOTE: this should probably be in util/event or something (not in provider/event)
24type Bus interface {
25 Publisher
26 Subscribe() (Subscriber, error)
27 Close()
28 Done() <-chan struct{}
29}
30
31// Subscriber emits events it sees on the channel returned by Events().
32// A Clone() of a subscriber will emit all events that have not been emitted

Callers 21

TestBusFunction · 0.95
TestCloneFunction · 0.95
stateMachineMethod · 0.65
runMethod · 0.65
stateMachineMethod · 0.65
TestUpgradeFunction · 0.95
TestBusFunction · 0.95
TestCloneFunction · 0.95
mainFunction · 0.65
EndBlockerMethod · 0.65
GenerateMethod · 0.65
ReadMethod · 0.65

Implementers 1

buspubsub/bus.go

Calls

no outgoing calls

Tested by

no test coverage detected