MCPcopy Index your code
hub / github.com/Effect-TS/effect / succeed

Function succeed

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

Source from the content-addressed store, hash-verified

6422
6423/** @internal */
6424export const succeed = <A>(value: A): Stream.Stream<A> => fromChunk(Chunk.of(value))
6425
6426/** @internal */
6427export 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