MCPcopy Create free account
hub / github.com/effect-app/libs / fromPull

Function fromPull

repos/effect/packages/effect/src/Channel.ts:368–371  ·  view source on GitHub ↗
(
  effect: Effect.Effect<Pull.Pull<OutElem, OutErr, OutDone, EnvX>, EX, Env>
)

Source from the content-addressed store, hash-verified

366 * const channel = Channel.fromPull(Effect.sync(() => {
367 * let emitted = false
368 * return Effect.suspend(() => {
369 * if (emitted) return Cause.done()
370 * emitted = true
371 * return Effect.succeed(42)
372 * })
373 * }))
374 * await Effect.runPromise(Channel.runCollect(channel)) // => [42]

Callers 15

fromIteratorFunction · 0.70
fromArrayFunction · 0.70
fromIteratorArrayFunction · 0.70
endFunction · 0.70
endSyncFunction · 0.70
Channel.tsFile · 0.70
failFunction · 0.70
failSyncFunction · 0.70
failCauseFunction · 0.70
failCauseSyncFunction · 0.70
fromEffectFunction · 0.70
fromEffectDoneFunction · 0.70

Calls 1

fromTransformFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…