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

Function poll

packages/effect/src/TxDeferred.ts:193–193  ·  view source on GitHub ↗
(self: TxDeferred<A, E>)

Source from the content-addressed store, hash-verified

191 * @since 2.0.0
192 */
193export const poll = <A, E>(self: TxDeferred<A, E>): Effect.Effect<Option<Result<A, E>>> => TxRef.get(self.ref)
194
195/**
196 * Completes the deferred with a `Result`. Returns `true` if this was the first

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected