© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Issue with Runtime Scope Not Closing When Using `runtime.runPromise` - Effect Community
EC
Effect Community
•
9mo ago
DiamondDragon
Issue with Runtime Scope Not Closing When Using `runtime.runPromise`
am i setting up my runtime incorrectly
? I
'm running the runtime with
const result = await runtime.runPromise(seed())
const result = await runtime.runPromise(seed())
but it
's not closing the scope when running the script
But if i just manually provide the layers and use
Effect.runPromise
Effect.runPromise
it closes after executing the script
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
Improving Error Messages When Using `runtime.runPromise`
EC
Effect Community / 🚀-beginners
8mo ago
TypeScript Error When Using `Effect.runPromise` with `getApiClient` in React Hook
EC
Effect Community / 🚀-beginners
16mo ago
Issue with error wrapping in `Effect.runPromise` during interop with Promises
EC
Effect Community / 🚀-beginners
3y ago
Retain Error Type with runPromise
EC
Effect Community / 🚀-beginners
2y ago