Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
F# High Performance

You're reading from   F# High Performance Increase your F# programming productivity and focus on performance optimization with best practices, expert techniques, and more

Arrow left icon
Product type Paperback
Published in Jan 2017
Publisher Packt
ISBN-13 9781786468079
Length 338 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
 Kusumawardhono Kusumawardhono
Author Profile Icon Kusumawardhono
Kusumawardhono
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

F# High Performance
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Performing Common Optimizations in F# FREE CHAPTER 2. Performance Measurement 3. Optimizing Data Structures 4. Introduction to Concurrency in F# 5. Advanced Concurrency Support in F# 6. Optimizing Type Provider 7. Language Features and Constructs Optimization 8. Optimizing Computation Expressions

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 overview of asynchronous programming in .NET TPL

For asynchronous operations (or asynchronous programming, as is mostly mentioned in C#/VB documentation in MSDN) the async-await model relies heavily on the Task and Task<T>...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images