MCPcopy Create free account
hub / github.com/Effect-TS/effect / removeObserver

Method removeObserver

packages/effect/src/internal/effect.ts:606–612  ·  view source on GitHub ↗
(cb: (exit: Exit.Exit<A, E>) => void)

Source from the content-addressed store, hash-verified

604 return () => this.removeObserver(cb)
605 }
606 removeObserver(cb: (exit: Exit.Exit<A, E>) => void): void {
607 if (this._exit || this._observers === undefined) return
608 const index = this._observers.indexOf(cb)
609 if (index >= 0) {
610 this._observers.splice(index, 1)
611 }
612 }
613 interruptUnsafe(fiberId?: number | undefined, annotations?: Context.Context<never> | undefined): void {
614 if (this._exit) {
615 return

Callers 3

addObserverMethod · 0.95
removeObserversFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected