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

Function fromEffectDone

repos/effect/packages/effect/src/Channel.ts:1139–1142  ·  view source on GitHub ↗
(
  effect: Effect.Effect<A, E, R>
)

Source from the content-addressed store, hash-verified

1137 *
1138 * @category constructors
1139 * @since 4.0.0
1140 */
1141export const fromEffectTake = <A, E, Done, E2, R>(
1142 effect: Effect.Effect<Take.Take<A, E, Done>, E2, R>
1143): Channel<Arr.NonEmptyReadonlyArray<A>, E | E2, Done, unknown, unknown, unknown, R> =>
1144 fromPull(Effect.succeed(Effect.flatMap(effect, Take.toPull)))
1145

Callers

nothing calls this directly

Calls 2

fromPullFunction · 0.70
succeedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…