Skip to content

Commit

Permalink
Removes deprecation warnings of now-obsoleted functions
Browse files Browse the repository at this point in the history
  • Loading branch information
abelbraaksma committed Nov 5, 2023
1 parent 21f11af commit 79ae985
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FSharp.Control.TaskSeq/TaskSeqBuilder.fs
Original file line number Diff line number Diff line change
Expand Up @@ -291,18 +291,18 @@ and [<NoComparison; NoEquality>] TaskSeq<'Machine, 'T
// the Current value
data.current <- ValueNone

ValueTask.FromResult result
ValueTask.fromResult result

| ValueTaskSourceStatus.Faulted
| ValueTaskSourceStatus.Canceled
| ValueTaskSourceStatus.Pending as state ->
Debug.logInfo ("at MoveNextAsyncResult: case ", state)

ValueTask.ofIValueTaskSource this version
ValueTask.ofSource this version
| _ ->
Debug.logInfo "at MoveNextAsyncResult: Unexpected state"
// assume it's a possibly new, not yet supported case, treat as default
ValueTask.ofIValueTaskSource this version
ValueTask.ofSource this version

and ResumableTSC<'T> = ResumableCode<TaskSeqStateMachineData<'T>, unit>
and TaskSeqStateMachine<'T> = ResumableStateMachine<TaskSeqStateMachineData<'T>>
Expand Down

0 comments on commit 79ae985

Please sign in to comment.