Last active
October 16, 2018 05:06
-
-
Save dbrattli/edf2f340a3937502d4932ff41cbb35e9 to your computer and use it in GitHub Desktop.
Asynchronoush Function
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
// An asynchronous function taking a long time before "returning" a value | |
let funcAsync () = | |
async { | |
do! Async.Sleep 5000 | |
return 42 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment