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

Function poll

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

Source from the content-addressed store, hash-verified

746 * @since 2.0.0
747 */
748export function poll<A, E>(self: Deferred<A, E>): Effect<Option.Option<Effect<A, E>>> {
749 return internalEffect.sync(() => Option.fromUndefinedOr(self.effect))
750}
751
752/**
753 * Attempts to complete the `Deferred` with the specified value.

Callers

nothing calls this directly

Calls 1

syncMethod · 0.45

Tested by

no test coverage detected