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

Function empty

repos/effect/packages/effect/src/TxHashMap.ts:254–258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252 * await Effect.runPromise(program) // => 1
253 * ```
254 *
255 * @category constructors
256 * @since 2.0.0
257 */
258export const empty = <K, V>(): Effect.Effect<TxHashMap<K, V>> =>
259 Effect.gen(function*() {
260 const ref = yield* TxRef.make(HashMap.empty<K, V>())
261 return Object.assign(Object.create(TxHashMapProto), { ref })

Callers 1

TxHashMap.tsFile · 0.70

Calls 1

makeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…