You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
task{let mutablei=0letts= taskSeq {
i <- i +1yield1
i <- i +1yield2
i <- i +1// we should never get here, if we pick idx 1}do! ts |> TaskSeq.item 1
printfn "%i" i
}
This prints "3", not "2". That's wrong. Side effects beyond the item found should not execute.
Activity
Improve and expand tests for TaskSeq.item/tryItem, found bug, see #65
abelbraaksma commentedon Nov 3, 2022
Test added in #61.
Fix bug #65, prevent TaskSeq.item and tryItem to read beyond the item…
Fix bug #65, prevent TaskSeq.item and tryItem to read beyond the item…
Improve and expand tests for TaskSeq.item/tryItem, found bug, see #65
Improve and expand tests for TaskSeq.item/tryItem, found bug, see #65