Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

task_continuation_context::use_arbitrary Method

Creates a task continuation context which allows the Runtime to choose the execution context for a continuation.

static task_continuation_context use_arbitrary();

A task continuation context that represents an arbitrary location.

When this continuation context is used the continuation will execute in a context the runtime chooses even if the antecedent task is apartment aware.

use_arbitrary can be used to turn off the default behavior for a continuation on an apartment aware task created in an STA.

This method is only available to Windows Store apps.

Header: ppltasks.h

Namespace: concurrency

Show:
© 2017 Microsoft