Table of contents
TOC
Collapse the table of content
Expand the table of content

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

Den Delimarsky|Last Updated: 6/9/2016
|
1 Contributor

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)

Syntax

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

// Usage:
Async.AwaitTask (task)

Parameters

task

Type: System.Threading.Tasks.Task`1

The task to wait for.

Return Value

Returns an asynchronous computation object.

Platforms

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

Version Information

F# Core Library Versions

Supported in: 4.0, Portable

See Also

Control.Async Class (F#)

Microsoft.FSharp.Control Namespace (F#)

© 2016 Microsoft