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

Function succeed

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

Source from the content-addressed store, hash-verified

573
574/** @internal */
575export const succeed = <A>(value: A): Config.Config<A> => {
576 const constant = Object.create(proto)
577 constant._tag = OpCodes.OP_CONSTANT
578 constant.value = value
579 constant.parse = () => Either.right(value)
580 return constant
581}
582
583/** @internal */
584export 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