Open buntec opened 1 year ago
Hi,
Browsing the Cats Effect module, I noticed the custom converter from CompletableFuture[T] to F[T]. Is there a reason not to use the built-in https://github.com/typelevel/cats-effect/blob/series/3.x/kernel/jvm/src/main/scala/cats/effect/kernel/AsyncPlatform.scala#L32? At first glance it seems to have better cancellation semantics.
CompletableFuture[T]
F[T]
Just curious!
Thanks, Christoph
This issue has become a bit more serious since Cats Effect 3.5.0 came out and made async_ uncancelable. That means that all operations here are now uncancelable.
async_
Hi,
Browsing the Cats Effect module, I noticed the custom converter from
CompletableFuture[T]
toF[T]
. Is there a reason not to use the built-in https://github.com/typelevel/cats-effect/blob/series/3.x/kernel/jvm/src/main/scala/cats/effect/kernel/AsyncPlatform.scala#L32? At first glance it seems to have better cancellation semantics.Just curious!
Thanks, Christoph