Search Results for

Show / Hide Table of Contents

# Enum AsyncContinuationExecutor

Defines async continuations behavior.

###### Namespace: Apache.Ignite.Core.Configuration

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    public enum AsyncContinuationExecutor : int

### Fields

Name | Description
--- | ---
Custom | Indicates that custom executor is configured on the Java side. This value should not be used explicitly.
ThreadPool | Executes async continuations on the thread pool (default).
UnsafeSynchronous | Executes async continuations synchronously on the same thread that completes the previous operation. WARNING: can cause deadlocks and performance issues when not used correctly. Ignite performs cache operations using a special "striped" thread pool (see StripedThreadPoolSize). Using this synchronous mode means that async continuations (any code coming after `await cache.DoAsync()`, or code in `ContinueWith()`) will run on the striped pool: Cache operations can't execute while user code runs on the striped thread. Attempting other cache operations on the striped thread can cause a deadlock. This mode can improve performance, because continuations do not have to be scheduled on another thread. However, special care is required to release striped threads as soon as possible.