File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ type Extract =
3636 let inline call_2 ( _mthd : ^M , x : ^I ) = (( ^M or ^I ) : ( static member Extract : _ -> _) x)
3737 call_ 2 ( Unchecked.defaultof< Extract>, x)
3838
39+ #nowarn " 0025" // (see nowarn comment below)
40+
3941type Extend =
4042 static member (= >>) ( g: Async< 'T> , f: Async< 'T> -> 'U) = async.Return ( f g) : Async< 'U>
4143 static member (= >>) ( g: Lazy< 'T> , f: Lazy< 'T> -> 'U ) = Lazy<_>. Create ( fun () -> f g) : Lazy< 'U>
@@ -77,7 +79,7 @@ type Extend =
7779 match g with
7880 | ValueTask.Faulted e -> tcs.SetException e
7981 | ValueTask.Canceled -> tcs.SetCanceled ()
80- | ValueTask.Succeeded -> raise Internals.Errors.exnUnreachable
82+ // nowarn here, this case has been handled already if g.IsCompleted
8183 else
8284 ValueTask.continueTask tcs g ( fun _ ->
8385 try tcs.SetResult ( f g)
You can’t perform that action at this time.
0 commit comments