You can use ContinueWith:
let awaitTask (t: Task) = t.ContinueWith (fun t -> ()) |> Async.AwaitTask
Or AwaitIAsyncResult with infinite timeout:
let awaitTask (t: Task) = t |> Async.AwaitIAsyncResult |> Async.Ignore
More Related Contents:
- F# : not sure how to start [closed]
- Understanding F# Value Restriction Errors
- How to have two methods calling each other?
- Handy F# snippets [closed]
- How to constrain one type parameter by another
- F# Functions vs. Values
- F# Tail Recursive Function Example
- Shadowing and Nested function
- Use of `inline` in F#
- How can i convert between F# List and F# Tuple?
- Why are functions in OCaml/F# not recursive by default?
- Why isn’t there a protected access modifier in F#?
- Using keywords as identifiers in F#
- Global operator overloading in F#
- How to write a function for generic numbers?
- F#: let mutable vs. ref
- Correct version of Fsharp.Core
- F# getting a list of random numbers
- Why is F#’s type inference so fickle?
- While or Tail Recursion in F#, what to use when?
- Help me to explain the F# Matrix transpose function
- F# Split list into sublists based on comparison of adjacent elements
- F# changes to OCaml [closed]
- F# interface inheritance failure due to unit
- Is it an anti-pattern to use async/await inside of a new Promise() constructor?
- How can I send an HTTP request from my FastAPI app to another site (API)?
- ASP.NET Controller: An asynchronous module or handler completed while an asynchronous operation was still pending
- An entry point cannot be marked with the ‘async’ modifier
- How to use await in a python lambda
- chrome.runtime.onMessage response with async await