O'Reilly logo

F# High Performance by Eriawan Kusumawardhono

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required