Skip to content

Commit

Permalink
Use the new function where relevant
Browse files Browse the repository at this point in the history
  • Loading branch information
vinassefranche committed Jan 21, 2025
1 parent 6a6542a commit 16d6bc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/effect/src/internal/keyedPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ const makeImpl = <K, A, E, R>(
}
})
const activePools: Effect.Effect<Array<Pool.Pool<A, E>>> = core.suspend(() =>
core.forEachSequential(Array.from(HashMap.values(MutableRef.get(map))), (value) => {
core.forEachSequential(HashMap.toValues(MutableRef.get(map)), (value) => {
switch (value._tag) {
case "Complete": {
return core.succeed(value.pool)
Expand Down
2 changes: 1 addition & 1 deletion packages/effect/test/utils/cache/WatchableLookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const makeEffect = <Key, Value, Error = never>(
const assertAllCleaned = () =>
Effect.flatMap(createdResources(), (resources) =>
resourcesCleaned(
Chunk.flatten(Chunk.unsafeFromArray(Array.from(HashMap.values(resources))))
Chunk.flatten(Chunk.unsafeFromArray(HashMap.toValues(resources)))
))
const assertAllCleanedForKey = (key: Key) =>
Effect.flatMap(createdResources(), (resources) =>
Expand Down

0 comments on commit 16d6bc9

Please sign in to comment.