( parent: Fiber.Fiber<unknown, unknown>, map: MutableHashMap.MutableHashMap<Key, Entry<A, E>> )
| 689 | }) |
| 690 | |
| 691 | const invalidateAllImpl = <Key, A, E>( |
| 692 | parent: Fiber.Fiber<unknown, unknown>, |
| 693 | map: MutableHashMap.MutableHashMap<Key, Entry<A, E>> |
| 694 | ): Effect.Effect<void> => { |
| 695 | const fibers = Arr.empty<Fiber.Fiber<unknown, unknown>>() |
| 696 | for (const [, entry] of map) { |
| 697 | fibers.push(effect.forkUnsafe(parent as any, Scope.close(entry.scope, effect.exitVoid), true, true)) |
| 698 | } |
| 699 | MutableHashMap.clear(map) |
| 700 | return effect.fiberAwaitAll(fibers) |
| 701 | } |
| 702 | |
| 703 | /** |
| 704 | * Retrieves the approximate number of entries in the cache. |
no test coverage detected