You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
blockOn may be invoked by directly using the WSTP as an ExecutionContext with scala.concurrent.blocking, no IO involved. So that's not sufficient justification for not using try/catch. Not sure if we can rejustify it, or just have to add it in.
So I think the conclusion of the note is correct even though the reasoning isn't. You can't get into blockOn without being already on the thread pool, which means we're going to be wrapped in a top level try/catch.
blockOn
may be invoked by directly using the WSTP as anExecutionContext
withscala.concurrent.blocking
, noIO
involved. So that's not sufficient justification for not usingtry
/catch
. Not sure if we can rejustify it, or just have to add it in.cats-effect/core/jvm/src/main/scala/cats/effect/unsafe/WorkerThread.scala
Lines 923 to 933 in 9218648
The text was updated successfully, but these errors were encountered: