Introduction to interop with .NET TPL

F# has a high compatibility support for .NET TPL; it can nicely use the .NET TPL objects of Task and Task<T> back and forth. This means that F# can also use the Task/Task<T> results from other languages as well and not just from F#.

In .NET TPL, the concurrency support is not just for parallel programming, but also for the awaiter of the async-await model that has currently started in C# 5.0 and VB 11, as related in .NET 4.5 and later.

In this chapter, we will start from the overview of .NET TPL support in F# in terms of leveraging Task and Task<T>. We will discuss the interop perspective from outside of F#, such as interop with F# asynchronous workflow, in Chapter 5, Advanced Concurrency Support in F#.

A quick ...

Get F# High Performance now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.