Skip to content

Commit

Permalink
use "unbounded" buffer for Stream.fromEventListener (#3266)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Jul 16, 2024
1 parent 402ba65 commit a9d7800
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/beige-rules-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"effect": patch
---

use "unbounded" buffer for Stream.fromEventListener
2 changes: 1 addition & 1 deletion packages/effect/src/internal/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8343,4 +8343,4 @@ export const fromEventListener = <A = unknown>(
}
target.addEventListener(type, cb as any, options)
return Effect.sync(() => target.removeEventListener(type, cb, options))
})
}, "unbounded")

0 comments on commit a9d7800

Please sign in to comment.