Skip to content

Instantly share code, notes, and snippets.

@thinktainer
Created September 25, 2013 19:09
Show Gist options
  • Save thinktainer/6704488 to your computer and use it in GitHub Desktop.
Save thinktainer/6704488 to your computer and use it in GitHub Desktop.
member x.ContinueUnitTaskSafe (writer : (string -> unit) option) (t : Task) =
match t.IsFaulted with
| true ->
match writer with
| Some x -> x "reraising"
| None -> ()
raise t.Exception
| arg -> ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment