-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contention on Map when using IO.unsafeToFuture() #2663
Comments
Thanks for the detailed write up! Just repeating a couple notes from Discord for anyone reading the issue here:
|
This is such a good feature - difficult decision to disable it.
OK I see. As a main execution context, mainly used to run
I could not find any possibility to get some metrics from At then end, either we keep this current execution context also for the |
Good news,
|
I see now that
Oh yes, this can be a way to achieve that. I'll have a look. Thanks! |
From https://discord.com/channels/632277896739946517/632278585700384799/921743315169325087
In a project based on
Future
, we introduceIO
step by step. We useIO.unsafeToFuture()
for interoperability.I can observe the following locking:
The whole application is running with one main
ExecutionContext
using aForkJoinPool
building very similarly toscala.concurrent.ExecutionContext.opportunistic
.We build our own
IORuntime
to re-use the mainExecutionContext
like this:This runtime can be instantiated many times.
For the observed contention, it is instantiated once and re-used.
The text was updated successfully, but these errors were encountered: