Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/FsToolkit.ErrorHandling/TaskOptionCE.fs
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@ type TaskOptionBuilder() =
// If the `sm.Data.MethodBuilder` has already been set somewhere else (like While/WhileDynamic), we shouldn't continue
if sm.Data.IsTaskCompleted then
()

if step then
elif step then
sm.Data.SetResult()
else
match sm.ResumptionDynamicInfo.ResumptionData with
Expand Down
3 changes: 1 addition & 2 deletions src/FsToolkit.ErrorHandling/TaskValueOptionCE.fs
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,7 @@ type TaskValueOptionBuilder() =
// If the `sm.Data.MethodBuilder` has already been set somewhere else (like While/WhileDynamic), we shouldn't continue
if sm.Data.IsTaskCompleted then
()

if step then
elif step then
sm.Data.SetResult()
else
match sm.ResumptionDynamicInfo.ResumptionData with
Expand Down
3 changes: 1 addition & 2 deletions src/FsToolkit.ErrorHandling/ValueTaskValueOptionCE.fs
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,7 @@ type ValueTaskValueOptionBuilder() =
// If the `sm.Data.MethodBuilder` has already been set somewhere else (like While/WhileDynamic), we shouldn't continue
if sm.Data.IsTaskCompleted then
()

if step then
elif step then
sm.Data.SetResult()
else
match sm.ResumptionDynamicInfo.ResumptionData with
Expand Down
Loading