MCPcopy Create free account
hub / github.com/MetaMask/torus-node / New

Function New

eventbus/event_bus.go:58–66  ·  view source on GitHub ↗

New returns new EventBus with empty handlers.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

NewFunction · 0.92
TestNewServerFunction · 0.70
TestNewClientFunction · 0.70
TestRegisterFunction · 0.70
TestPushEventFunction · 0.70
TestServerPublishFunction · 0.70
NewNetworkBusFunction · 0.70
TestNewFunction · 0.70
TestHasCallbackFunction · 0.70
TestSubscribeFunction · 0.70
TestSubscribeOnceFunction · 0.70

Calls 1

BusInterface · 0.85

Tested by 15

TestNewServerFunction · 0.56
TestNewClientFunction · 0.56
TestRegisterFunction · 0.56
TestPushEventFunction · 0.56
TestServerPublishFunction · 0.56
TestNewFunction · 0.56
TestHasCallbackFunction · 0.56
TestSubscribeFunction · 0.56
TestSubscribeOnceFunction · 0.56
TestUnsubscribeFunction · 0.56
TestUnsubscribeAllFunction · 0.56