Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions TaskBuilder.fs
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ module TaskBuilder =
methodBuilder.AwaitUnsafeOnCompleted(&await, &self)
member __.SetStateMachine(_) = () // Doesn't really apply since we're a reference type.

let unwrapException (agg : AggregateException) =
let inners = agg.InnerExceptions
if inners.Count = 1 then inners.[0]
else agg :> Exception

/// Used to represent no-ops like the implicit empty "else" branch of an "if" expression.
let zero = Return ()

Expand Down Expand Up @@ -413,4 +408,4 @@ module V2 =

type TaskBuilderV2 with
member inline __.Bind (task, continuation : 'a -> 'b Step) : 'b Step = (BindI.Priority1 >>= task) continuation
member inline __.ReturnFrom a : 'b Step = ReturnFromI.Priority1 $ a
member inline __.ReturnFrom a : 'b Step = ReturnFromI.Priority1 $ a