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

Function succeed

packages/effect/src/internal/config.ts:588–594  ·  view source on GitHub ↗
(value: A)

Source from the content-addressed store, hash-verified

586
587/** @internal */
588export const succeed = <A>(value: A): Config.Config<A> => {
589 const constant = Object.create(proto)
590 constant._tag = OpCodes.OP_CONSTANT
591 constant.value = value
592 constant.parse = () => Either.right(value)
593 return constant
594}
595
596/** @internal */
597export const suspend = <A>(config: LazyArg<Config.Config<A>>): Config.Config<A> => {

Callers 4

optionFunction · 0.70
syncFunction · 0.70
tupleFunction · 0.70
config.tsFile · 0.70

Calls 1

createMethod · 0.80

Tested by

no test coverage detected