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

Method SubscribeAsync

eventbus/event_bus.go:115–119  ·  view source on GitHub ↗

SubscribeAsync subscribes to a topic with an asynchronous callback Transactional determines whether subsequent callbacks for a topic are run serially (true) or concurrently (false) Returns error if `fn` is not a function.

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

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