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

Function initial

packages/effect/src/unstable/reactivity/AsyncResult.ts:217–222  ·  view source on GitHub ↗
(waiting = false)

Source from the content-addressed store, hash-verified

215 * @since 4.0.0
216 */
217export const initial = <A = never, E = never>(waiting = false): Initial<A, E> => {
218 const result = Object.create(ResultProto)
219 result._tag = "Initial"
220 result.waiting = waiting
221 return result
222}
223
224/**
225 * Successful `AsyncResult` containing the current value, its timestamp, and the shared waiting flag.

Callers 8

reduceWhileFunction · 0.85
reduceWhileEffectFunction · 0.85
reduceWhileArrayFunction · 0.85
reduceWhileArrayEffectFunction · 0.85
reduceArrayFunction · 0.85
Channel.tsFile · 0.85
waitingFromFunction · 0.85
toCodecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected