fs2 icon indicating copy to clipboard operation
fs2 copied to clipboard

Weird interaction between cancelation and interruptWhen

Open TimWSpence opened this issue 3 years ago • 0 comments

Fix hanging when combining Stream.eval(F.canceled) and interruptWhen.

I believe that the .as(canceledError) is safe as our fa.attempt was canceled which means that cancelation is unmasked in this scope and hence F.canceled.as(canceledError) <-> F.canceled. This matches the behaviour in Scope#interruptibleEval when there is no interrupt context and it binds fa.attempt directly.

TimWSpence avatar Aug 11 '22 11:08 TimWSpence