MCPcopy Create free account
hub / github.com/coder/agentapi / unsubscribeInner

Method unsubscribeInner

lib/httpapi/events.go:285–288  ·  view source on GitHub ↗

Assumes the caller holds the lock.

(chanId int)

Source from the content-addressed store, hash-verified

283
284// Assumes the caller holds the lock.
285func (e *EventEmitter) unsubscribeInner(chanId int) {
286 close(e.chans[chanId])
287 delete(e.chans, chanId)
288}
289
290func (e *EventEmitter) Unsubscribe(chanId int) {
291 e.mu.Lock()

Callers 2

notifyChannelsMethod · 0.95
UnsubscribeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected