Effect CommunityEC
Effect Community13mo ago
29 replies
johtso

Handling Multiple Timeout Scenarios with `Effect.timeout` in Effect Typescript

How is Effect.timeout expected to behave if there are multiple parts of the lifecycle of the effect like a SqlClient. There's timeout when connecting, timeout when making an individual query and maybe an over-all timeout for your effect.

Would the idea be that you would perhaps set a timeout when initially yielding the SqlClient service? I guess that doesn't make sense as the service may have already been initialised, the connection timeout is something you'd want to set when supplying the layer I guess..
Was this page helpful?