RunOnUnion

PackageAxial
Creates adaptive flow placements.

Specification

Kind
Union
Members
12
Examples
0
adaptiveSignature
RunOn.adaptive ()
adaptiveWithSignature
RunOn.adaptiveWith options
IsDedicatedThreadSignature
this.IsDedicatedThread
IsInlineSignature
this.IsInline
IsThreadPoolSignature
this.IsThreadPool

Summary

NameSignatureSynopsis
Union cases
IsDedicatedThreadthis.IsDedicatedThreadNo description available.
IsInlinethis.IsInlineNo description available.
IsThreadPoolthis.IsThreadPoolNo description available.
IsSchedulerthis.IsSchedulerNo description available.
IsAdaptivethis.IsAdaptiveNo description available.
InlineInlineStarts work on the calling thread.
ThreadPoolThreadPoolStarts work on the .NET thread pool.
DedicatedThreadDedicatedThreadStarts work on a dedicated .NET thread.
SchedulerScheduler TaskSchedulerStarts work on the supplied .NET task scheduler.
AdaptiveAdaptive AdaptiveRunOnStateAn adaptive placement created by RunOn.adaptive or RunOn.adaptiveWith.
Operations
adaptiveRunOn.adaptive ()Creates a placement that samples three invocation attempts, then permanently selects inline or thread-pool execution from their minimum synchronous hold time.
adaptiveWithRunOn.adaptiveWith optionsCreates a placement that samples the requested number of invocation attempts before deciding once from their minimum synchronous hold time.

Union cases

kind:member

IsDedicatedThread

this.IsDedicatedThread
Member

Returns

bool
kind:member

IsInline

this.IsInline
Member

Returns

bool
kind:member

IsThreadPool

this.IsThreadPool
Member

Returns

bool
kind:member

IsScheduler

this.IsScheduler
Member

Returns

bool
kind:member

IsAdaptive

this.IsAdaptive
Member

Returns

bool
kind:member

Inline

Inline
Member
Starts work on the calling thread.

Returns

unit
kind:member

ThreadPool

ThreadPool
Member
Starts work on the .NET thread pool.

Returns

unit
kind:member

DedicatedThread

DedicatedThread
Member
Starts work on a dedicated .NET thread.

Returns

unit
kind:member

Scheduler

Scheduler TaskScheduler
Member
Starts work on the supplied .NET task scheduler.

Parameters

NameTypeDescription
ItemTaskScheduler

Returns

unit
kind:member

Adaptive

Adaptive AdaptiveRunOnState
Member
An adaptive placement created by RunOn.adaptive or RunOn.adaptiveWith.

Parameters

NameTypeDescription
ItemAdaptiveRunOnState

Returns

unit

Operations

kind:member

adaptive

RunOn.adaptive ()
Member
Creates a placement that samples three invocation attempts, then permanently selects inline or thread-pool execution from their minimum synchronous hold time.

Parameters

NameTypeDescription
unit

Returns

RunOn
kind:member

adaptiveWith

RunOn.adaptiveWith options
Member
Creates a placement that samples the requested number of invocation attempts before deciding once from their minimum synchronous hold time. Failed and interrupted attempts count as samples.

Parameters

NameTypeDescription
optionsAdaptiveRunOnOptions

Returns

RunOn