MCPcopy Create free account
hub / github.com/Monibuca/engine / SubscribeBlock

Method SubscribeBlock

plugin.go:258–263  ·  view source on GitHub ↗

SubscribeBlock 阻塞订阅一个流,直到订阅结束

(streamPath string, sub ISubscriber, t byte)

Source from the content-addressed store, hash-verified

256
257// SubscribeBlock 阻塞订阅一个流,直到订阅结束
258func (opt *Plugin) SubscribeBlock(streamPath string, sub ISubscriber, t byte) (err error) {
259 if err = opt.Subscribe(streamPath, sub); err == nil {
260 sub.PlayBlock(t)
261 }
262 return
263}
264
265var ErrNoPullConfig = errors.New("no pull config")
266var Pullers sync.Map

Callers

nothing calls this directly

Calls 2

SubscribeMethod · 0.95
PlayBlockMethod · 0.65

Tested by

no test coverage detected