File tree Expand file tree Collapse file tree
src/FSharpPlus/Extensions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -340,8 +340,7 @@ module Task =
340340 | Canceled -> canceled
341341 else
342342 task.ContinueWith( fun ( x : Task < 'T >) -> tryWith ( fun () -> x) compensation) .Unwrap ()
343- | Error (:? AggregateException as exn) -> compensation ( unwrapException exn)
344- | Error exn -> compensation exn
343+ | Error exn -> compensation exn
345344
346345 [<ObsoleteAttribute( " Swap parameters" ) >]
347346 let rec tryFinally ( body : unit -> Task < 'T >) ( compensation : unit -> unit ) : Task < 'T > =
Original file line number Diff line number Diff line change @@ -314,8 +314,7 @@ module ValueTask =
314314 | Canceled -> canceled
315315 else
316316 task.AsTask() .ContinueWith( fun ( x : Task < 'T >) -> Task.tryWith ( compensation >> fun x -> x.AsTask()) ( fun () -> x)) .Unwrap () |> ValueTask< 'T>
317- | Error (:? AggregateException as exn) -> compensation ( unwrapException exn)
318- | Error exn -> compensation exn
317+ | Error exn -> compensation exn
319318
320319
321320 /// Used to de-sugar try .. finally .. blocks in Computation Expressions.
You can’t perform that action at this time.
0 commit comments