Summary
We have explored the advanced concurrency support in F# and .NET TPL. We also have enough knowledge about how we should handle side effects and also on using asynchronous for various cases and scenarios.
The main conclusion when implementing the best practices of leveraging concurrency in F# is that there is no silver bullet for all concurrency needs, and this includes avoiding the assumption that parallelized code always runs faster than non-parallel code after examining cases that may bring down the performance of parallel implementation in .NET TPL. These warning cases can be applied not just in F# but also in VB/C#.
We have understood asynchrony and parallelism. We will use this knowledge to optimize the type providers and avoid the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access