Show / Hide Table of Contents

Enum AsyncContinuationOptions

Specifies the behavior of an asynchronous operation continuation.

Namespace: UnityFx.Async
Assembly: UnityFx.Async-netstandard2.0.dll
Syntax
[Flags]
public enum AsyncContinuationOptions

Fields

Name Description
ExecuteOnDefaultContext

Specifies that the continuation should be executed on the default thread. Please see DefaultSynchronizationContext for more information.

ExecuteSynchronously

Specifies that the continuation should be executed synchronously. With this option specified, the continuation runs on the same thread that causes the antecedent operation to transition into its final state.

None

When no continuation options are specified, default behavior should be used when executing a continuation. I.e. continuation is executed on the same thread that scheduled it.

NotOnCanceled

Specifies that the continuation should not be scheduled if its antecedent was canceled.

NotOnFaulted

Specifies that the continuation should not be scheduled if its antecedent threw an unhandled exception.

NotOnRanToCompletion

Specifies that the continuation should not be scheduled if its antecedent ran to completion.

OnlyOnCanceled

Specifies that the continuation should be scheduled only if its antecedent was canceled.

OnlyOnFaulted

Specifies that the continuation should be scheduled only if its antecedent threw an unhandled exception.

OnlyOnRanToCompletion

Specifies that the continuation should be scheduled only if its antecedent ran to completion.

See Also
AsyncCallbackOptions
  • Improve this Doc
  • View Source
In This Article
  • Fields
Back to top Copyright (c) 2017-2018 Alexander Bogarsukov