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

Method closeUnsafe

packages/effect/src/internal/effect.ts:5596–5600  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5594 })
5595 })
5596 closeUnsafe() {
5597 if (!this._isOpen) return false
5598 this._isOpen = false
5599 return true
5600 }
5601 close = sync(() => this.closeUnsafe())
5602 whenOpen = <A, E, R>(self: Effect.Effect<A, E, R>): Effect.Effect<A, E, R> => flatMap(this.await, () => self)
5603 isOpen() {

Callers 1

LatchClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected