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

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

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

Creates an asynchronous computation which starts the given computation as a System.Threading.Tasks.Task.

Namespace/Module Path: Microsoft.FSharp.Control

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

Syntax

// Signature:
static member StartChildAsTask : Async<'T> * ?TaskCreationOptions -> Async<Task<'T>>

// Usage:
Async.StartChildAsTask (computation)
Async.StartChildAsTask (computation, taskCreationOptions = taskCreationOptions)

Parameters

computation Type: Async<'T>

The computation to execute.

taskCreationOptions Type: System.Threading.Tasks.TaskCreationOptions

Optional task creation options.

Return Value

Returns the task wrapped as an asynchronous computation.

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