© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Understanding the Safety Concerns of `Effect.unsafeMakeSemaphore()` - Effect Community
EC
Effect Community
•
2y ago
Liam Butler-Lawrence
Understanding the Safety Concerns of `Effect.unsafeMakeSemaphore()`
What
's unsafe about
Effect.unsafeMakeSemaphore()
Effect.unsafeMakeSemaphore()
? Looking at the impl
, the
"safe
"
Effect.makeSemaphore
Effect.makeSemaphore
seems to simply wrap the
"unsafe
" function in
Effect.sync(() => _)
Effect.sync(() => _)
, and there
's no documentation to explain why that would be safer
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
Understanding the Purpose of '@effect/io/Tracer'
EC
Effect Community / 🚀-effect
3y ago
Understanding the Role of `Adapter` in `Effect.gen`
EC
Effect Community / 🚀-effect
2y ago
Understanding the Role of Typeclasses in Effect Systems
EC
Effect Community / 🚀-effect
3y ago
Understanding the Role of `@tsplus/stdlib` in Effect
EC
Effect Community / 🚀-effect
3y ago