Skip to content

Commit

Permalink
Bikeshedding
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Mar 24, 2022
1 parent 07268c0 commit 42cb1f9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ private[kernel] trait AsyncPlatform[F[_]] { this: Async[F] =>
}))
}

Some(flatMap(delay(cf.cancel(false))) {
case true => unit
case false => // failed to cancel - block until completion
Some(
ifM(delay(cf.cancel(false)))(
unit,
async_[Unit] { cb =>
cf.handle[Unit]((_, _) => cb(Right(())))
()
}
})
))
}
}
}
Expand Down

0 comments on commit 42cb1f9

Please sign in to comment.