Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Async.AwaitTask<'T> Method (F#)

Async.AwaitTask<'T> Method (F#)

Returns an asynchronous computation that waits for the given task to complete and returns its result.

Namespace/Module Path: Microsoft.FSharp.Control

Assembly: FSharp.Core (in FSharp.Core.dll)

// Signature:
static member AwaitTask : Task<'T> -> Async<'T>

// Usage:
Async.AwaitTask (task)


Type: Task<TResult>

The task to wait for.

An asynchronous computation object.

Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

F# Core Library Versions

Supported in: 4.0, Portable

© 2015 Microsoft