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

Function succeed

packages/effect/src/Stream.ts:814–814  ·  view source on GitHub ↗
(value: A)

Source from the content-addressed store, hash-verified

812 * @since 2.0.0
813 */
814export const succeed = <A>(value: A): Stream<A> => fromChannel(Channel.succeed(Arr.of(value)))
815
816/**
817 * Creates a stream from a sequence of values.

Callers 2

resultFunction · 0.70
Stream.tsFile · 0.70

Calls 3

fromChannelFunction · 0.70
ofMethod · 0.65
succeedMethod · 0.45

Tested by

no test coverage detected