Last active
May 3, 2021 04:59
-
-
Save bjartwolf/d54689649d1ff517d12df1bec1d91f78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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