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

Method SubscribeOnce

eventbus/event_bus.go:123–127  ·  view source on GitHub ↗

SubscribeOnce subscribes to a topic once. Handler will be removed after executing. Returns error if `fn` is not a function.

(topic string, fn func(interface{}))

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

doSubscribeMethod · 0.95

Tested by

no test coverage detected