Skip to content

Instantly share code, notes, and snippets.

@jwosty
Created July 11, 2023 19:16
Show Gist options
  • Save jwosty/c6cb8ae1111ccc5caeb0f6db591d879e to your computer and use it in GitHub Desktop.
Save jwosty/c6cb8ae1111ccc5caeb0f6db591d879e to your computer and use it in GitHub Desktop.
F# async fail
let f (x: int) =
let y = x / 0
async {
return y
}
let g = async {
let! x = Async.Catch (f 42)
()
}
Async.Start g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment