()
| 252 | * await Effect.runPromise(program) // => 1 |
| 253 | * ``` |
| 254 | * |
| 255 | * @category constructors |
| 256 | * @since 2.0.0 |
| 257 | */ |
| 258 | export 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 }) |
no test coverage detected
searching dependent graphs…