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

Function setSelf

packages/effect/src/unstable/reactivity/AtomRegistry.ts:979–982  ·  view source on GitHub ↗
(this: Lifetime<any>, a: A)

Source from the content-addressed store, hash-verified

977 },
978
979 setSelf<A>(this: Lifetime<any>, a: A): void {
980 if (this.disposed) return
981 this.node.setValue(a as any)
982 },
983
984 set<R, W>(this: Lifetime<any>, atom: Atom.Writable<R, W>, value: W): void {
985 if (this.disposed) return

Callers

nothing calls this directly

Calls 1

setValueMethod · 0.45

Tested by

no test coverage detected