© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Using `FiberSet.awaitEmpty` as a Latch for Streams Without Semaphore - Effect Community
EC
Effect Community
•
7mo ago
Alex4534534
Using `FiberSet.awaitEmpty` as a Latch for Streams Without Semaphore
Hi
, I have a question about
FiberSet
FiberSet
and
Streams
Streams
:
1
. Is there a way to make
FiberSet.awaitEmpty
FiberSet.awaitEmpty
act as a
Latch
Latch
for Streams
?
2
. The moment we add a new
Fiber
Fiber
to the
FiberSet
FiberSet
, the
Stream
Stream
should wait for
FiberSet
FiberSet
to become empty
again before dispatching anything to subscribers
.
3
. Let
's also say that I can
't use a
Semaphore
Semaphore
in my use case
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Efficiently Awaiting All Fibers in a FiberSet Without Hanging
EC
Effect Community / 🚀-effect
2y ago
Building a Durable Semaphore for Distributed Systems
EC
Effect Community / 🚀-effect
11mo ago
Searching for a Utility for Dropping Semaphore with 1 Permit
EC
Effect Community / 🚀-effect
3y ago
Effect.runtime vs FiberSet for non-effect callbacks
EC
Effect Community / 🚀-effect
2w ago