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

Method openUnsafe

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

Source from the content-addressed store, hash-verified

5571 })
5572 release = withFiber<boolean>((fiber) => this._isOpen ? succeedFalse : this.scheduleUnsafe(fiber))
5573 openUnsafe() {
5574 if (this._isOpen) return false
5575 this._isOpen = true
5576 this.flushWaiters()
5577 return true
5578 }
5579 await = callback<void>((resume) => {
5580 if (this._isOpen) {
5581 return resume(void_)

Callers

nothing calls this directly

Calls 1

flushWaitersMethod · 0.95

Tested by

no test coverage detected