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

Function succeed

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

Source from the content-addressed store, hash-verified

730 * @since 2.0.0
731 */
732export const succeed = <A>(value: A): Stream<A> => fromChannel(Channel.succeed(Arr.of(value)))
733
734/**
735 * 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