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

Function makeUnsafe

repos/effect/packages/effect/src/ScopedRef.ts:54–61  ·  view source on GitHub ↗
(
  scope: Scope.Closeable,
  value: A
)

Source from the content-addressed store, hash-verified

52}
53
54const makeUnsafe = <A>(
55 scope: Scope.Closeable,
56 value: A
57): ScopedRef<A> => {
58 const self = Object.create(Proto)
59 self.backing = Synchronized.makeUnsafe([scope, value] as const)
60 return self
61}
62
63/**
64 * Creates a new `ScopedRef` from an effect that acquires the initial value.

Callers 2

ScopedRef.tsFile · 0.70
makeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…