We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 323b62e + 4da3051 commit dc960d9Copy full SHA for dc960d9
modules/free/src/main/scala/doobie/WeakAsync.scala
@@ -58,8 +58,10 @@ object WeakAsync {
58
F.syncStep[G, T](fa, Int.MaxValue).flatMap { // MaxValue b/c we assume G will implement ceding/fairness
59
case Left(fa) =>
60
G.fromFutureCancelable {
61
- G.delay(dispatcher.unsafeToFutureCancelable(fa)).map { case (fut, cancel) =>
62
- (fut, G.fromFuture(G.delay(cancel())))
+ G.uncancelable { _ =>
+ G.delay(dispatcher.unsafeToFutureCancelable(fa)).map { case (fut, cancel) =>
63
+ (fut, G.fromFuture(G.delay(cancel())))
64
+ }
65
}
66
67
case Right(a) => G.pure(a)
0 commit comments