typelevel / cats-effect

The pure asynchronous runtime for Scala
https://typelevel.org/cats-effect/
Apache License 2.0
2.03k stars 520 forks source link

Propagate Java thread interruption in `unsafeRunSync` et al. #4166

Open armanbilge opened 1 week ago

armanbilge commented 1 week ago

We want to handle it similarly to the TimeoutException

https://github.com/typelevel/cats-effect/blob/725a4cd25725d23c3aa2213c6a54e9feadb66478/std/jvm/src/main/scala/cats/effect/std/DispatcherPlatform.scala#L58-L65