We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e60f98 commit a14dc57Copy full SHA for a14dc57
src/Async.fs
@@ -6,6 +6,7 @@ module Async =
6
7
let map f m = async.Bind(m, (f >> async.Return))
8
9
+ /// A replacement for Async.AwaitTask that throws inner exceptions if they exist.
10
let awaitTaskWithInnerException (task: Task<'T>): Async<'T> =
11
Async.FromContinuations(fun (success, exception', _cancellationToken) ->
12
task.ContinueWith(fun (t: Task<'T>) ->
@@ -19,6 +20,7 @@ module Async =
19
20
success t.Result)
21
|> ignore)
22
23
24
let awaitTaskWithInnerException' (task: Task): Async<unit> =
25
26
task.ContinueWith(fun (t: Task) ->
0 commit comments