F# Training
F# Training
F# Training
  • Presentation
  • Fundamentals
    • Introduction
    • Syntax
      • Bases
      • Functions
      • Rules
      • Exceptions
    • First concepts
    • 🍔Quiz
  • Functions
    • Signature
    • Concepts
    • Syntax
    • Standard functions
    • Operators
    • Addendum
    • 🍔Quiz
    • 📜Summary
  • Types
    • Overview
    • Tuples
    • Records
    • Unions
    • Enums
    • Anonymous records
    • Value types
    • 📜Recap
    • Addendum
  • Monadic types
    • Intro
    • Option type
    • Result type
    • Smart constructor
    • 🚀Computation expression (CE)
    • 🚀CE theoretical basements
    • 📜Recap
  • Pattern matching
    • Patterns
    • Match expression
    • Active patterns
    • 🚀Fold function
    • 📜Recap
    • 🕹️Exercises
  • Collections
    • Overview
    • Types
    • Common functions
    • Dedicated functions
    • 🍔Quiz
    • 📜Recap
  • Asynchronous programming
    • Asynchronous workflow
    • Interop with .NET TPL
    • 📜Recap
  • Module and Namespace
    • Overview
    • Namespace
    • Module
    • 🍔Quiz
    • 📜Recap
  • Object-oriented
    • Introduction
    • Members
    • Type extensions
    • Class, Struct
    • Interface
    • Object expression
    • Recommendations
Powered by GitBook
On this page
  • Asynchronous programming in F♯
  • Additional resources

Was this helpful?

Edit on GitHub
  1. Asynchronous programming

Recap

PreviousInterop with .NET TPLNextOverview

Last updated 1 month ago

Was this helpful?

Asynchronous programming in F♯

Via async {} block in pure F♯

  • Similar to C♯ async/await pattern but prior

  • Avoids some of the pitfalls of the async/await pattern

  • Requires manual start of calculation

  • But compilation prevents forgetting it

Via task {} block

  • Facilitates interaction with asynchronous .NET library

  • New standard in F♯ 6.0

Additional resources

🔗

📜
Microsoft F♯ tutorial: Async