Closed
Description
If I have this code:
do
canceler <- forkAff do
res <- attempt do
delay (Milliseconds 100.0)
pure unit
case res of
Left err -> logShow error
Right _ -> log "Done"
delay (Milliseconds 10.0)
canceled <- cancel canceler (error "Stop!")
when canceled do
log "Canceled"
What should this log? Should attempt
mask a cancellation attempt, and prevent cancellation?
Metadata
Metadata
Assignees
Labels
No labels