Asynchronous pattern in F#
In the previous sections, we first discussed functional programming. Then, we introduced F# and its main features. Finally, we described how to use the most important constructs in the F# language. The meaning of all this is to be able to deal with the main topic: FRP.
An important element is missing in order to introduce FRP. This is required because without it, you cannot fully understand reactive programming.
F#, like any other language of the .NET Framework, supports asynchronous programming. It is crucial to perform portions of code in a separate thread.
The syntax for applying asynchronous code is really simple. The following is the syntax:
async { <expression> }
The code inserted in place of <expression>
will be withdrawn ...
Get Reactive Programming for .NET Developers now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.