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

Function succeed

packages/effect/src/internal/stream.ts:6462–6462  ·  view source on GitHub ↗
(value: A)

Source from the content-addressed store, hash-verified

6460
6461/** @internal */
6462export const succeed = <A>(value: A): Stream.Stream<A> => fromChunk(Chunk.of(value))
6463
6464/** @internal */
6465export const sync = <A>(evaluate: LazyArg<A>): Stream.Stream<A> => suspend(() => fromChunk(Chunk.of(evaluate())))

Callers 2

repeatEffectWithScheduleFunction · 0.70
stream.tsFile · 0.70

Calls 2

fromChunkFunction · 0.85
ofMethod · 0.65

Tested by

no test coverage detected