Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
fix use of timeout (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Dec 21, 2023
1 parent 4eb1aeb commit 9659fbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/forty-needles-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/experimental": patch
---

fix use of timeout
1 change: 1 addition & 0 deletions src/RequestResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const dataLoader = dual<
items.length >= options.maxBatchSize
),
Effect.timeout(options.window),
Effect.ignore,
Effect.zipRight(Ref.getAndSet(batch, ReadonlyArray.empty()))
)

Expand Down

0 comments on commit 9659fbe

Please sign in to comment.