-
Notifications
You must be signed in to change notification settings - Fork 557
Closed
Labels
Milestone
Description
Relevant wayfinder:
if (regs.isEmpty) {
// TODO this needs to be modified to be cancelable
F.async_[Unit] { cb =>
if (!latch.compareAndSet(Noop, () => cb(Completed))) {
// state was changed between when we last set the latch and now; complete the callback immediately
cb(Completed)
}
}
This code predates the async
cancelability change and I'm relatively certain that it is intended to be cancelable. We don't have any tests which exercise that codepath though, so this qualifies as an invisibug.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done