Skip to content

Instantly share code, notes, and snippets.

@bjartwolf
Last active May 3, 2021 04:59
Show Gist options
  • Save bjartwolf/d54689649d1ff517d12df1bec1d91f78 to your computer and use it in GitHub Desktop.
Save bjartwolf/d54689649d1ff517d12df1bec1d91f78 to your computer and use it in GitHub Desktop.
let mywebcontroller (input: int) = async {
if (input = 2) then
return 4
else
do! Async.Sleep(1000)
return 3
}
Async.RunSynchronously (mywebcontroller 2) |> printfn "%A"
Async.RunSynchronously (mywebcontroller 1) |> printfn "%A"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment