MCPcopy Create free account
hub / github.com/effect-app/libs / fn

Function fn

repos/effect/packages/effect/src/unstable/reactivity/Atom.ts:1143–1148  ·  view source on GitHub ↗
(...args: ReadonlyArray<any>)

Source from the content-addressed store, hash-verified

1141/**
1142 * Creates a writable atom for an `Effect` or `Stream` function; writing an argument starts the computation and exposes its state as an `AsyncResult`.
1143 *
1144 * @category constructors
1145 * @since 4.0.0
1146 */
1147export const fn: {
1148 <Arg>(): <E, A>(fn: (arg: Arg, get: FnContext) => Effect.Effect<A, E, Scope.Scope | AtomRegistry>, options?: {
1149 readonly initialValue?: A | undefined
1150 readonly concurrent?: boolean | undefined
1151 }) => AtomResultFn<Arg, A, E>

Callers 9

Atom.tsFile · 0.70
Effect.test.tsFile · 0.50
Schema.test.tsFile · 0.50
Effect.tsFile · 0.50
withVisitedTrackingFunction · 0.50
withVisitedTrackingFunction · 0.50
asHttpEffectFunction · 0.50
RpcClient.tsFile · 0.50

Calls 1

makeFnFunction · 0.70

Tested by

no test coverage detected