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

Method SubscribeOnceAsync

eventbus/event_bus.go:132–136  ·  view source on GitHub ↗

SubscribeOnceAsync subscribes to a topic once with an asynchronous callback 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