-
-
Notifications
You must be signed in to change notification settings - Fork 571
Convenience methods for constructing a custom IORuntime #2638
etspaceman
started this conversation in
Ideas
Convenience methods for constructing a custom IORuntime
#2638
Return to top
-
|
I recently had the need to manually construct an IORuntime, which took in an def executorRuntime(EC: ExecutionContext): IORuntime {
override val runtime: IORuntime = { val (blocking, _) = IORuntime.createDefaultBlockingExecutionContext() val (scheduler, _) = IORuntime.createDefaultScheduler() IORuntime(EC, blocking, scheduler, () => (), IORuntimeConfig()) } } It would be interesting to have some of these convenience methods in cats effect. Or, at the very least, some documentation on doing these things. I opened this as a discussion per a conversation with @djspiewak, as we may not want to encourage these operations (since the default IORuntime has a lot of benefits). |
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment