Skip to content

Commit a14dc57

Browse files
author
Jamil Maqdis Anton
committed
Add docs.
1 parent 2e60f98 commit a14dc57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Async.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module Async =
66

77
let map f m = async.Bind(m, (f >> async.Return))
88

9+
/// A replacement for Async.AwaitTask that throws inner exceptions if they exist.
910
let awaitTaskWithInnerException (task: Task<'T>): Async<'T> =
1011
Async.FromContinuations(fun (success, exception', _cancellationToken) ->
1112
task.ContinueWith(fun (t: Task<'T>) ->
@@ -19,6 +20,7 @@ module Async =
1920
success t.Result)
2021
|> ignore)
2122

23+
/// A replacement for Async.AwaitTask that throws inner exceptions if they exist.
2224
let awaitTaskWithInnerException' (task: Task): Async<unit> =
2325
Async.FromContinuations(fun (success, exception', _cancellationToken) ->
2426
task.ContinueWith(fun (t: Task) ->

0 commit comments

Comments
 (0)