-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathAsyncCreationOptions.cs
More file actions
31 lines (27 loc) · 915 Bytes
/
AsyncCreationOptions.cs
File metadata and controls
31 lines (27 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2018-2020 Alexander Bogarsukov.
// Licensed under the MIT license. See the LICENSE.md file in the project root for more information.
using System;
using System.Threading;
namespace UnityFx.Async
{
/// <summary>
/// Specifies flags that control optional behavior for the creation and execution of operations.
/// </summary>
/// <seealso cref="AsyncResult"/>
[Flags]
public enum AsyncCreationOptions
{
/// <summary>
/// Specifies that the default behavior should be used.
/// </summary>
None = 0,
/// <summary>
/// Forces continuations added to the current operation to be executed asynchronously.
/// </summary>
RunContinuationsAsynchronously = AsyncResult.OptionRunContinuationsAsynchronously,
/// <summary>
/// If set cancelling the operation has no effect (silently ignored).
/// </summary>
SuppressCancellation = AsyncResult.OptionSuppressCancellation
}
}