System.Threading.Tasks
26 wrapped types. Load them with using { "System.Threading.Tasks" }. Click a class to open it.
BoolTask class · extends Task
System.Threading.Tasks.Task`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] · assembly System.Private.CoreLib
Implements: IAsyncResult, IDisposable
Constructors
new BoolTask(Func<bool> function) |
new BoolTask(Func<bool> function, CancellationToken cancellationToken) |
new BoolTask(Func<bool> function, TaskCreationOptions creationOptions) |
new BoolTask(Func<bool> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions) |
new BoolTask(Func<object, bool> function, object state) |
new BoolTask(Func<object, bool> function, object state, CancellationToken cancellationToken) |
new BoolTask(Func<object, bool> function, object state, TaskCreationOptions creationOptions) |
new BoolTask(Func<object, bool> function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions) |
Ring: new BoolTask(args) uses one constructor; the others are chosen by the parameter names: new BoolTask().@New([ :param = value ]) or dnNew("BoolTask",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Result | bool | read | o.Result |
Factory | TaskFactory<bool> | read · static | o.getFactory() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ConfigureAwait | callMethod("ConfigureAwait",[p1]) | ConfiguredTaskAwaitable<bool> ConfigureAwait(bool continueOnCapturedContext)ConfiguredTaskAwaitable<bool> ConfigureAwait(ConfigureAwaitOptions options) |
ContinueWith | ContinueWith(value)ContinueWith([ :continuationAction = … ])ContinueWith([ :continuationFunction = … ])ContinueWith([ :continuationAction = …, :cancellationToken = … ])ContinueWith([ :continuationAction = …, :scheduler = … ]) | Task ContinueWith(Action<Task<bool>> continuationAction)Task ContinueWith(Action<Task<bool>> continuationAction, CancellationToken cancellationToken)Task ContinueWith(Action<Task<bool>> continuationAction, TaskScheduler scheduler)Task ContinueWith(Action<Task<bool>> continuationAction, TaskContinuationOptions continuationOptions)Task ContinueWith(Action<Task<bool>> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task ContinueWith(Action<Task<bool>, object> continuationAction, object state)Task ContinueWith(Action<Task<bool>, object> continuationAction, object state, CancellationToken cancellationToken)Task ContinueWith(Action<Task<bool>, object> continuationAction, object state, TaskScheduler scheduler)Task ContinueWith(Action<Task<bool>, object> continuationAction, object state, TaskContinuationOptions continuationOptions)Task ContinueWith(Action<Task<bool>, object> continuationAction, object state, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<bool>, TNewResult> continuationFunction)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<bool>, TNewResult> continuationFunction, CancellationToken cancellationToken)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<bool>, TNewResult> continuationFunction, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<bool>, TNewResult> continuationFunction, TaskContinuationOptions continuationOptions)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<bool>, TNewResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<bool>, object, TNewResult> continuationFunction, object state)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<bool>, object, TNewResult> continuationFunction, object state, CancellationToken cancellationToken)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<bool>, object, TNewResult> continuationFunction, object state, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<bool>, object, TNewResult> continuationFunction, object state, TaskContinuationOptions continuationOptions)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<bool>, object, TNewResult> continuationFunction, object state, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) |
GetAwaiter | callMethod("GetAwaiter",[]) | TaskAwaiter<bool> GetAwaiter() |
WaitAsync | WaitAsync(value)WaitAsync([ :cancellationToken = … ])WaitAsync([ :timeout = … ])WaitAsync([ :timeout = …, :timeProvider = … ])WaitAsync([ :timeout = …, :cancellationToken = … ]) | Task<bool> WaitAsync(CancellationToken cancellationToken)Task<bool> WaitAsync(TimeSpan timeout)Task<bool> WaitAsync(TimeSpan timeout, TimeProvider timeProvider)Task<bool> WaitAsync(TimeSpan timeout, CancellationToken cancellationToken)Task<bool> WaitAsync(TimeSpan timeout, TimeProvider timeProvider, CancellationToken cancellationToken) |
Members of the base class are inherited.
BytesTask class · extends Task
System.Threading.Tasks.Task`1[[System.Byte[], System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] · assembly System.Private.CoreLib
Implements: IAsyncResult, IDisposable
Constructors
new BytesTask(Func<byte[]> function) |
new BytesTask(Func<byte[]> function, CancellationToken cancellationToken) |
new BytesTask(Func<byte[]> function, TaskCreationOptions creationOptions) |
new BytesTask(Func<byte[]> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions) |
new BytesTask(Func<object, byte[]> function, object state) |
new BytesTask(Func<object, byte[]> function, object state, CancellationToken cancellationToken) |
new BytesTask(Func<object, byte[]> function, object state, TaskCreationOptions creationOptions) |
new BytesTask(Func<object, byte[]> function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions) |
Ring: new BytesTask(args) uses one constructor; the others are chosen by the parameter names: new BytesTask().@New([ :param = value ]) or dnNew("BytesTask",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Result | byte[] | read | o.Result |
Factory | TaskFactory<byte[]> | read · static | o.getFactory() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ConfigureAwait | callMethod("ConfigureAwait",[p1]) | ConfiguredTaskAwaitable<byte[]> ConfigureAwait(bool continueOnCapturedContext)ConfiguredTaskAwaitable<byte[]> ConfigureAwait(ConfigureAwaitOptions options) |
ContinueWith | ContinueWith(value)ContinueWith([ :continuationAction = … ])ContinueWith([ :continuationFunction = … ])ContinueWith([ :continuationAction = …, :cancellationToken = … ])ContinueWith([ :continuationAction = …, :scheduler = … ]) | Task ContinueWith(Action<Task<byte[]>> continuationAction)Task ContinueWith(Action<Task<byte[]>> continuationAction, CancellationToken cancellationToken)Task ContinueWith(Action<Task<byte[]>> continuationAction, TaskScheduler scheduler)Task ContinueWith(Action<Task<byte[]>> continuationAction, TaskContinuationOptions continuationOptions)Task ContinueWith(Action<Task<byte[]>> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task ContinueWith(Action<Task<byte[]>, object> continuationAction, object state)Task ContinueWith(Action<Task<byte[]>, object> continuationAction, object state, CancellationToken cancellationToken)Task ContinueWith(Action<Task<byte[]>, object> continuationAction, object state, TaskScheduler scheduler)Task ContinueWith(Action<Task<byte[]>, object> continuationAction, object state, TaskContinuationOptions continuationOptions)Task ContinueWith(Action<Task<byte[]>, object> continuationAction, object state, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<byte[]>, TNewResult> continuationFunction)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<byte[]>, TNewResult> continuationFunction, CancellationToken cancellationToken)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<byte[]>, TNewResult> continuationFunction, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<byte[]>, TNewResult> continuationFunction, TaskContinuationOptions continuationOptions)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<byte[]>, TNewResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<byte[]>, object, TNewResult> continuationFunction, object state)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<byte[]>, object, TNewResult> continuationFunction, object state, CancellationToken cancellationToken)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<byte[]>, object, TNewResult> continuationFunction, object state, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<byte[]>, object, TNewResult> continuationFunction, object state, TaskContinuationOptions continuationOptions)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<byte[]>, object, TNewResult> continuationFunction, object state, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) |
GetAwaiter | callMethod("GetAwaiter",[]) | TaskAwaiter<byte[]> GetAwaiter() |
WaitAsync | WaitAsync(value)WaitAsync([ :cancellationToken = … ])WaitAsync([ :timeout = … ])WaitAsync([ :timeout = …, :timeProvider = … ])WaitAsync([ :timeout = …, :cancellationToken = … ]) | Task<byte[]> WaitAsync(CancellationToken cancellationToken)Task<byte[]> WaitAsync(TimeSpan timeout)Task<byte[]> WaitAsync(TimeSpan timeout, TimeProvider timeProvider)Task<byte[]> WaitAsync(TimeSpan timeout, CancellationToken cancellationToken)Task<byte[]> WaitAsync(TimeSpan timeout, TimeProvider timeProvider, CancellationToken cancellationToken) |
Members of the base class are inherited.
ConcurrentExclusiveSchedulerPair class
System.Threading.Tasks.ConcurrentExclusiveSchedulerPair · assembly System.Private.CoreLib
Constructors
new ConcurrentExclusiveSchedulerPair() |
new ConcurrentExclusiveSchedulerPair(TaskScheduler taskScheduler) |
new ConcurrentExclusiveSchedulerPair(TaskScheduler taskScheduler, int maxConcurrencyLevel) |
new ConcurrentExclusiveSchedulerPair(TaskScheduler taskScheduler, int maxConcurrencyLevel, int maxItemsPerTask) |
Ring: new ConcurrentExclusiveSchedulerPair(args) uses one constructor; the others are chosen by the parameter names: new ConcurrentExclusiveSchedulerPair().@New([ :param = value ]) or dnNew("ConcurrentExclusiveSchedulerPair",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Completion | Task | read | o.Completion |
ConcurrentScheduler | TaskScheduler | read | o.ConcurrentScheduler |
ExclusiveScheduler | TaskScheduler | read | o.ExclusiveScheduler |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Complete | callMethod("Complete",[]) | void Complete() |
IntTask class · extends Task
System.Threading.Tasks.Task`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] · assembly System.Private.CoreLib
Implements: IAsyncResult, IDisposable
Constructors
new IntTask(Func<int> function) |
new IntTask(Func<int> function, CancellationToken cancellationToken) |
new IntTask(Func<int> function, TaskCreationOptions creationOptions) |
new IntTask(Func<int> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions) |
new IntTask(Func<object, int> function, object state) |
new IntTask(Func<object, int> function, object state, CancellationToken cancellationToken) |
new IntTask(Func<object, int> function, object state, TaskCreationOptions creationOptions) |
new IntTask(Func<object, int> function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions) |
Ring: new IntTask(args) uses one constructor; the others are chosen by the parameter names: new IntTask().@New([ :param = value ]) or dnNew("IntTask",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Result | int | read | o.Result |
Factory | TaskFactory<int> | read · static | o.getFactory() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ConfigureAwait | callMethod("ConfigureAwait",[p1]) | ConfiguredTaskAwaitable<int> ConfigureAwait(bool continueOnCapturedContext)ConfiguredTaskAwaitable<int> ConfigureAwait(ConfigureAwaitOptions options) |
ContinueWith | ContinueWith(value)ContinueWith([ :continuationAction = … ])ContinueWith([ :continuationFunction = … ])ContinueWith([ :continuationAction = …, :cancellationToken = … ])ContinueWith([ :continuationAction = …, :scheduler = … ]) | Task ContinueWith(Action<Task<int>> continuationAction)Task ContinueWith(Action<Task<int>> continuationAction, CancellationToken cancellationToken)Task ContinueWith(Action<Task<int>> continuationAction, TaskScheduler scheduler)Task ContinueWith(Action<Task<int>> continuationAction, TaskContinuationOptions continuationOptions)Task ContinueWith(Action<Task<int>> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task ContinueWith(Action<Task<int>, object> continuationAction, object state)Task ContinueWith(Action<Task<int>, object> continuationAction, object state, CancellationToken cancellationToken)Task ContinueWith(Action<Task<int>, object> continuationAction, object state, TaskScheduler scheduler)Task ContinueWith(Action<Task<int>, object> continuationAction, object state, TaskContinuationOptions continuationOptions)Task ContinueWith(Action<Task<int>, object> continuationAction, object state, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<int>, TNewResult> continuationFunction)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<int>, TNewResult> continuationFunction, CancellationToken cancellationToken)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<int>, TNewResult> continuationFunction, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<int>, TNewResult> continuationFunction, TaskContinuationOptions continuationOptions)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<int>, TNewResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<int>, object, TNewResult> continuationFunction, object state)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<int>, object, TNewResult> continuationFunction, object state, CancellationToken cancellationToken)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<int>, object, TNewResult> continuationFunction, object state, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<int>, object, TNewResult> continuationFunction, object state, TaskContinuationOptions continuationOptions)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<int>, object, TNewResult> continuationFunction, object state, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) |
GetAwaiter | callMethod("GetAwaiter",[]) | TaskAwaiter<int> GetAwaiter() |
WaitAsync | WaitAsync(value)WaitAsync([ :cancellationToken = … ])WaitAsync([ :timeout = … ])WaitAsync([ :timeout = …, :timeProvider = … ])WaitAsync([ :timeout = …, :cancellationToken = … ]) | Task<int> WaitAsync(CancellationToken cancellationToken)Task<int> WaitAsync(TimeSpan timeout)Task<int> WaitAsync(TimeSpan timeout, TimeProvider timeProvider)Task<int> WaitAsync(TimeSpan timeout, CancellationToken cancellationToken)Task<int> WaitAsync(TimeSpan timeout, TimeProvider timeProvider, CancellationToken cancellationToken) |
Members of the base class are inherited.
NumberTask class · extends Task
System.Threading.Tasks.Task`1[[System.Double, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] · assembly System.Private.CoreLib
Implements: IAsyncResult, IDisposable
Constructors
new NumberTask(Func<double> function) |
new NumberTask(Func<double> function, CancellationToken cancellationToken) |
new NumberTask(Func<double> function, TaskCreationOptions creationOptions) |
new NumberTask(Func<double> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions) |
new NumberTask(Func<object, double> function, object state) |
new NumberTask(Func<object, double> function, object state, CancellationToken cancellationToken) |
new NumberTask(Func<object, double> function, object state, TaskCreationOptions creationOptions) |
new NumberTask(Func<object, double> function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions) |
Ring: new NumberTask(args) uses one constructor; the others are chosen by the parameter names: new NumberTask().@New([ :param = value ]) or dnNew("NumberTask",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Result | double | read | o.Result |
Factory | TaskFactory<double> | read · static | o.getFactory() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ConfigureAwait | callMethod("ConfigureAwait",[p1]) | ConfiguredTaskAwaitable<double> ConfigureAwait(bool continueOnCapturedContext)ConfiguredTaskAwaitable<double> ConfigureAwait(ConfigureAwaitOptions options) |
ContinueWith | ContinueWith(value)ContinueWith([ :continuationAction = … ])ContinueWith([ :continuationFunction = … ])ContinueWith([ :continuationAction = …, :cancellationToken = … ])ContinueWith([ :continuationAction = …, :scheduler = … ]) | Task ContinueWith(Action<Task<double>> continuationAction)Task ContinueWith(Action<Task<double>> continuationAction, CancellationToken cancellationToken)Task ContinueWith(Action<Task<double>> continuationAction, TaskScheduler scheduler)Task ContinueWith(Action<Task<double>> continuationAction, TaskContinuationOptions continuationOptions)Task ContinueWith(Action<Task<double>> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task ContinueWith(Action<Task<double>, object> continuationAction, object state)Task ContinueWith(Action<Task<double>, object> continuationAction, object state, CancellationToken cancellationToken)Task ContinueWith(Action<Task<double>, object> continuationAction, object state, TaskScheduler scheduler)Task ContinueWith(Action<Task<double>, object> continuationAction, object state, TaskContinuationOptions continuationOptions)Task ContinueWith(Action<Task<double>, object> continuationAction, object state, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<double>, TNewResult> continuationFunction)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<double>, TNewResult> continuationFunction, CancellationToken cancellationToken)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<double>, TNewResult> continuationFunction, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<double>, TNewResult> continuationFunction, TaskContinuationOptions continuationOptions)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<double>, TNewResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<double>, object, TNewResult> continuationFunction, object state)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<double>, object, TNewResult> continuationFunction, object state, CancellationToken cancellationToken)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<double>, object, TNewResult> continuationFunction, object state, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<double>, object, TNewResult> continuationFunction, object state, TaskContinuationOptions continuationOptions)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<double>, object, TNewResult> continuationFunction, object state, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) |
GetAwaiter | callMethod("GetAwaiter",[]) | TaskAwaiter<double> GetAwaiter() |
WaitAsync | WaitAsync(value)WaitAsync([ :cancellationToken = … ])WaitAsync([ :timeout = … ])WaitAsync([ :timeout = …, :timeProvider = … ])WaitAsync([ :timeout = …, :cancellationToken = … ]) | Task<double> WaitAsync(CancellationToken cancellationToken)Task<double> WaitAsync(TimeSpan timeout)Task<double> WaitAsync(TimeSpan timeout, TimeProvider timeProvider)Task<double> WaitAsync(TimeSpan timeout, CancellationToken cancellationToken)Task<double> WaitAsync(TimeSpan timeout, TimeProvider timeProvider, CancellationToken cancellationToken) |
Members of the base class are inherited.
ObjectTask class · extends Task
System.Threading.Tasks.Task`1[[System.Object, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] · assembly System.Private.CoreLib
Implements: IAsyncResult, IDisposable
Constructors
new ObjectTask(Func<object> function) |
new ObjectTask(Func<object> function, CancellationToken cancellationToken) |
new ObjectTask(Func<object> function, TaskCreationOptions creationOptions) |
new ObjectTask(Func<object> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions) |
new ObjectTask(Func<object, object> function, object state) |
new ObjectTask(Func<object, object> function, object state, CancellationToken cancellationToken) |
new ObjectTask(Func<object, object> function, object state, TaskCreationOptions creationOptions) |
new ObjectTask(Func<object, object> function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions) |
Ring: new ObjectTask(args) uses one constructor; the others are chosen by the parameter names: new ObjectTask().@New([ :param = value ]) or dnNew("ObjectTask",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Result | object | read | o.Result |
Factory | TaskFactory<object> | read · static | o.getFactory() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ConfigureAwait | callMethod("ConfigureAwait",[p1]) | ConfiguredTaskAwaitable<object> ConfigureAwait(bool continueOnCapturedContext)ConfiguredTaskAwaitable<object> ConfigureAwait(ConfigureAwaitOptions options) |
ContinueWith | ContinueWith(value)ContinueWith([ :continuationAction = … ])ContinueWith([ :continuationFunction = … ])ContinueWith([ :continuationAction = …, :cancellationToken = … ])ContinueWith([ :continuationAction = …, :scheduler = … ]) | Task ContinueWith(Action<Task<object>> continuationAction)Task ContinueWith(Action<Task<object>> continuationAction, CancellationToken cancellationToken)Task ContinueWith(Action<Task<object>> continuationAction, TaskScheduler scheduler)Task ContinueWith(Action<Task<object>> continuationAction, TaskContinuationOptions continuationOptions)Task ContinueWith(Action<Task<object>> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task ContinueWith(Action<Task<object>, object> continuationAction, object state)Task ContinueWith(Action<Task<object>, object> continuationAction, object state, CancellationToken cancellationToken)Task ContinueWith(Action<Task<object>, object> continuationAction, object state, TaskScheduler scheduler)Task ContinueWith(Action<Task<object>, object> continuationAction, object state, TaskContinuationOptions continuationOptions)Task ContinueWith(Action<Task<object>, object> continuationAction, object state, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<object>, TNewResult> continuationFunction)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<object>, TNewResult> continuationFunction, CancellationToken cancellationToken)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<object>, TNewResult> continuationFunction, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<object>, TNewResult> continuationFunction, TaskContinuationOptions continuationOptions)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<object>, TNewResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<object>, object, TNewResult> continuationFunction, object state)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<object>, object, TNewResult> continuationFunction, object state, CancellationToken cancellationToken)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<object>, object, TNewResult> continuationFunction, object state, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<object>, object, TNewResult> continuationFunction, object state, TaskContinuationOptions continuationOptions)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<object>, object, TNewResult> continuationFunction, object state, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) |
GetAwaiter | callMethod("GetAwaiter",[]) | TaskAwaiter<object> GetAwaiter() |
WaitAsync | WaitAsync(value)WaitAsync([ :cancellationToken = … ])WaitAsync([ :timeout = … ])WaitAsync([ :timeout = …, :timeProvider = … ])WaitAsync([ :timeout = …, :cancellationToken = … ]) | Task<object> WaitAsync(CancellationToken cancellationToken)Task<object> WaitAsync(TimeSpan timeout)Task<object> WaitAsync(TimeSpan timeout, TimeProvider timeProvider)Task<object> WaitAsync(TimeSpan timeout, CancellationToken cancellationToken)Task<object> WaitAsync(TimeSpan timeout, TimeProvider timeProvider, CancellationToken cancellationToken) |
Members of the base class are inherited.
Parallel class static
System.Threading.Tasks.Parallel · assembly System.Threading.Tasks.Parallel
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
For | @For([ :fromInclusive = …, :toExclusive = …, :body = … ])@For([ :fromInclusive = …, :toExclusive = …, :parallelOptions = …, :body = … ])@For([ :fromInclusive = …, :toExclusive = …, :localInit = …, :body = …, :localFinally = … ])@For([ :fromInclusive = …, :toExclusive = …, :parallelOptions = …, :localInit = …, :body = …, :localFinally = … ]) | static ParallelLoopResult For(int fromInclusive, int toExclusive, Action<int> body)static ParallelLoopResult For(long fromInclusive, long toExclusive, Action<long> body)static ParallelLoopResult For(int fromInclusive, int toExclusive, ParallelOptions parallelOptions, Action<int> body)static ParallelLoopResult For(long fromInclusive, long toExclusive, ParallelOptions parallelOptions, Action<long> body)static ParallelLoopResult For(int fromInclusive, int toExclusive, Action<int, ParallelLoopState> body)static ParallelLoopResult For(long fromInclusive, long toExclusive, Action<long, ParallelLoopState> body)static ParallelLoopResult For(int fromInclusive, int toExclusive, ParallelOptions parallelOptions, Action<int, ParallelLoopState> body)static ParallelLoopResult For(long fromInclusive, long toExclusive, ParallelOptions parallelOptions, Action<long, ParallelLoopState> body)static ParallelLoopResult For<TLocal>(int fromInclusive, int toExclusive, Func<TLocal> localInit, Func<int, ParallelLoopState, TLocal, TLocal> body, Action<TLocal> localFinally)static ParallelLoopResult For<TLocal>(long fromInclusive, long toExclusive, Func<TLocal> localInit, Func<long, ParallelLoopState, TLocal, TLocal> body, Action<TLocal> localFinally)static ParallelLoopResult For<TLocal>(int fromInclusive, int toExclusive, ParallelOptions parallelOptions, Func<TLocal> localInit, Func<int, ParallelLoopState, TLocal, TLocal> body, Action<TLocal> localFinally)static ParallelLoopResult For<TLocal>(long fromInclusive, long toExclusive, ParallelOptions parallelOptions, Func<TLocal> localInit, Func<long, ParallelLoopState, TLocal, TLocal> body, Action<TLocal> localFinally) |
ForAsync | ForAsync([ :fromInclusive = …, :toExclusive = …, :body = … ])ForAsync([ :fromInclusive = …, :toExclusive = …, :cancellationToken = …, :body = … ])ForAsync([ :fromInclusive = …, :toExclusive = …, :parallelOptions = …, :body = … ]) | static Task ForAsync<T>(T fromInclusive, T toExclusive, Func<T, CancellationToken, ValueTask> body)static Task ForAsync<T>(T fromInclusive, T toExclusive, CancellationToken cancellationToken, Func<T, CancellationToken, ValueTask> body)static Task ForAsync<T>(T fromInclusive, T toExclusive, ParallelOptions parallelOptions, Func<T, CancellationToken, ValueTask> body) |
ForEach | @ForEach([ :source = …, :body = … ])@ForEach([ :source = …, :parallelOptions = …, :body = … ])@ForEach([ :source = …, :localInit = …, :body = …, :localFinally = … ])@ForEach([ :source = …, :parallelOptions = …, :localInit = …, :body = …, :localFinally = … ]) | static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, Action<TSource> body)static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, ParallelOptions parallelOptions, Action<TSource> body)static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, Action<TSource, ParallelLoopState> body)static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, ParallelOptions parallelOptions, Action<TSource, ParallelLoopState> body)static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, Action<TSource, ParallelLoopState, long> body)static ParallelLoopResult ForEach<TSource>(IEnumerable<TSource> source, ParallelOptions parallelOptions, Action<TSource, ParallelLoopState, long> body)static ParallelLoopResult ForEach<TSource, TLocal>(IEnumerable<TSource> source, Func<TLocal> localInit, Func<TSource, ParallelLoopState, TLocal, TLocal> body, Action<TLocal> localFinally)static ParallelLoopResult ForEach<TSource, TLocal>(IEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TLocal> localInit, Func<TSource, ParallelLoopState, TLocal, TLocal> body, Action<TLocal> localFinally)static ParallelLoopResult ForEach<TSource, TLocal>(IEnumerable<TSource> source, Func<TLocal> localInit, Func<TSource, ParallelLoopState, long, TLocal, TLocal> body, Action<TLocal> localFinally)static ParallelLoopResult ForEach<TSource, TLocal>(IEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TLocal> localInit, Func<TSource, ParallelLoopState, long, TLocal, TLocal> body, Action<TLocal> localFinally)static ParallelLoopResult ForEach<TSource>(Partitioner<TSource> source, Action<TSource> body)static ParallelLoopResult ForEach<TSource>(Partitioner<TSource> source, Action<TSource, ParallelLoopState> body)static ParallelLoopResult ForEach<TSource>(OrderablePartitioner<TSource> source, Action<TSource, ParallelLoopState, long> body)static ParallelLoopResult ForEach<TSource, TLocal>(Partitioner<TSource> source, Func<TLocal> localInit, Func<TSource, ParallelLoopState, TLocal, TLocal> body, Action<TLocal> localFinally)static ParallelLoopResult ForEach<TSource, TLocal>(OrderablePartitioner<TSource> source, Func<TLocal> localInit, Func<TSource, ParallelLoopState, long, TLocal, TLocal> body, Action<TLocal> localFinally)static ParallelLoopResult ForEach<TSource>(Partitioner<TSource> source, ParallelOptions parallelOptions, Action<TSource> body)static ParallelLoopResult ForEach<TSource>(Partitioner<TSource> source, ParallelOptions parallelOptions, Action<TSource, ParallelLoopState> body)static ParallelLoopResult ForEach<TSource>(OrderablePartitioner<TSource> source, ParallelOptions parallelOptions, Action<TSource, ParallelLoopState, long> body)static ParallelLoopResult ForEach<TSource, TLocal>(Partitioner<TSource> source, ParallelOptions parallelOptions, Func<TLocal> localInit, Func<TSource, ParallelLoopState, TLocal, TLocal> body, Action<TLocal> localFinally)static ParallelLoopResult ForEach<TSource, TLocal>(OrderablePartitioner<TSource> source, ParallelOptions parallelOptions, Func<TLocal> localInit, Func<TSource, ParallelLoopState, long, TLocal, TLocal> body, Action<TLocal> localFinally) |
ForEachAsync | ForEachAsync([ :source = …, :body = … ])ForEachAsync([ :source = …, :cancellationToken = …, :body = … ])ForEachAsync([ :source = …, :parallelOptions = …, :body = … ]) | static Task ForEachAsync<TSource>(IEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask> body)static Task ForEachAsync<TSource>(IEnumerable<TSource> source, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)static Task ForEachAsync<TSource>(IEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TSource, CancellationToken, ValueTask> body)static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask> body)static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, CancellationToken cancellationToken, Func<TSource, CancellationToken, ValueTask> body)static Task ForEachAsync<TSource>(IAsyncEnumerable<TSource> source, ParallelOptions parallelOptions, Func<TSource, CancellationToken, ValueTask> body) |
Invoke | Invoke(value)Invoke([ :actions = … ])Invoke([ :parallelOptions = …, :actions = … ]) | static void Invoke(Action[] actions)static void Invoke(ParallelOptions parallelOptions, Action[] actions) |
ParallelLoopResult struct
System.Threading.Tasks.ParallelLoopResult · assembly System.Threading.Tasks.Parallel
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IsCompleted | bool | read | o.IsCompleted |
LowestBreakIteration | long? | read | o.LowestBreakIteration |
ParallelLoopState class
System.Threading.Tasks.ParallelLoopState · assembly System.Threading.Tasks.Parallel
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ShouldExitCurrentIteration | bool | read | o.ShouldExitCurrentIteration |
IsStopped | bool | read | o.IsStopped |
IsExceptional | bool | read | o.IsExceptional |
LowestBreakIteration | long? | read | o.LowestBreakIteration |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Break | callMethod("Break",[]) | void Break() |
Stop | callMethod("Stop",[]) | void Stop() |
ParallelOptions class
System.Threading.Tasks.ParallelOptions · assembly System.Threading.Tasks.Parallel
Constructors
new ParallelOptions() |
Ring: new ParallelOptions(args) uses one constructor; the others are chosen by the parameter names: new ParallelOptions().@New([ :param = value ]) or dnNew("ParallelOptions",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
TaskScheduler | TaskScheduler | read, write | o.TaskScheduler o.TaskScheduler = v |
MaxDegreeOfParallelism | int | read, write | o.MaxDegreeOfParallelism o.MaxDegreeOfParallelism = v |
CancellationToken | CancellationToken | read, write | o.CancellationToken o.CancellationToken = v |
StringTask class · extends Task
System.Threading.Tasks.Task`1[[System.String, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] · assembly System.Private.CoreLib
Implements: IAsyncResult, IDisposable
Constructors
new StringTask(Func<string> function) |
new StringTask(Func<string> function, CancellationToken cancellationToken) |
new StringTask(Func<string> function, TaskCreationOptions creationOptions) |
new StringTask(Func<string> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions) |
new StringTask(Func<object, string> function, object state) |
new StringTask(Func<object, string> function, object state, CancellationToken cancellationToken) |
new StringTask(Func<object, string> function, object state, TaskCreationOptions creationOptions) |
new StringTask(Func<object, string> function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions) |
Ring: new StringTask(args) uses one constructor; the others are chosen by the parameter names: new StringTask().@New([ :param = value ]) or dnNew("StringTask",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Result | string | read | o.Result |
Factory | TaskFactory<string> | read · static | o.getFactory() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ConfigureAwait | callMethod("ConfigureAwait",[p1]) | ConfiguredTaskAwaitable<string> ConfigureAwait(bool continueOnCapturedContext)ConfiguredTaskAwaitable<string> ConfigureAwait(ConfigureAwaitOptions options) |
ContinueWith | ContinueWith(value)ContinueWith([ :continuationAction = … ])ContinueWith([ :continuationFunction = … ])ContinueWith([ :continuationAction = …, :cancellationToken = … ])ContinueWith([ :continuationAction = …, :scheduler = … ]) | Task ContinueWith(Action<Task<string>> continuationAction)Task ContinueWith(Action<Task<string>> continuationAction, CancellationToken cancellationToken)Task ContinueWith(Action<Task<string>> continuationAction, TaskScheduler scheduler)Task ContinueWith(Action<Task<string>> continuationAction, TaskContinuationOptions continuationOptions)Task ContinueWith(Action<Task<string>> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task ContinueWith(Action<Task<string>, object> continuationAction, object state)Task ContinueWith(Action<Task<string>, object> continuationAction, object state, CancellationToken cancellationToken)Task ContinueWith(Action<Task<string>, object> continuationAction, object state, TaskScheduler scheduler)Task ContinueWith(Action<Task<string>, object> continuationAction, object state, TaskContinuationOptions continuationOptions)Task ContinueWith(Action<Task<string>, object> continuationAction, object state, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<string>, TNewResult> continuationFunction)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<string>, TNewResult> continuationFunction, CancellationToken cancellationToken)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<string>, TNewResult> continuationFunction, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<string>, TNewResult> continuationFunction, TaskContinuationOptions continuationOptions)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<string>, TNewResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<string>, object, TNewResult> continuationFunction, object state)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<string>, object, TNewResult> continuationFunction, object state, CancellationToken cancellationToken)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<string>, object, TNewResult> continuationFunction, object state, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<string>, object, TNewResult> continuationFunction, object state, TaskContinuationOptions continuationOptions)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<string>, object, TNewResult> continuationFunction, object state, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) |
GetAwaiter | callMethod("GetAwaiter",[]) | TaskAwaiter<string> GetAwaiter() |
WaitAsync | WaitAsync(value)WaitAsync([ :cancellationToken = … ])WaitAsync([ :timeout = … ])WaitAsync([ :timeout = …, :timeProvider = … ])WaitAsync([ :timeout = …, :cancellationToken = … ]) | Task<string> WaitAsync(CancellationToken cancellationToken)Task<string> WaitAsync(TimeSpan timeout)Task<string> WaitAsync(TimeSpan timeout, TimeProvider timeProvider)Task<string> WaitAsync(TimeSpan timeout, CancellationToken cancellationToken)Task<string> WaitAsync(TimeSpan timeout, TimeProvider timeProvider, CancellationToken cancellationToken) |
Members of the base class are inherited.
Task class
System.Threading.Tasks.Task · assembly System.Private.CoreLib
Implements: IAsyncResult, IDisposable
Constructors
new Task(Action action) |
new Task(Action action, CancellationToken cancellationToken) |
new Task(Action action, TaskCreationOptions creationOptions) |
new Task(Action action, CancellationToken cancellationToken, TaskCreationOptions creationOptions) |
new Task(Action<object> action, object state) |
new Task(Action<object> action, object state, CancellationToken cancellationToken) |
new Task(Action<object> action, object state, TaskCreationOptions creationOptions) |
new Task(Action<object> action, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions) |
Ring: new Task(args) uses one constructor; the others are chosen by the parameter names: new Task().@New([ :param = value ]) or dnNew("Task",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Id | int | read | o.Id |
Exception | AggregateException | read | o.Exception |
Status | TaskStatus | read | o.Status |
IsCanceled | bool | read | o.IsCanceled |
IsCompleted | bool | read | o.IsCompleted |
IsCompletedSuccessfully | bool | read | o.IsCompletedSuccessfully |
CreationOptions | TaskCreationOptions | read | o.CreationOptions |
AsyncState | object | read | o.AsyncState |
IsFaulted | bool | read | o.IsFaulted |
CurrentId | int? | read · static | o.CurrentId |
Factory | TaskFactory | read · static | o.Factory |
CompletedTask | Task | read · static | o.CompletedTask |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ConfigureAwait | callMethod("ConfigureAwait",[p1]) | ConfiguredTaskAwaitable ConfigureAwait(bool continueOnCapturedContext)ConfiguredTaskAwaitable ConfigureAwait(ConfigureAwaitOptions options) |
ContinueWith | ContinueWith(value)ContinueWith([ :continuationAction = … ])ContinueWith([ :continuationFunction = … ])ContinueWith([ :continuationAction = …, :cancellationToken = … ])ContinueWith([ :continuationAction = …, :scheduler = … ]) | Task ContinueWith(Action<Task> continuationAction)Task ContinueWith(Action<Task> continuationAction, CancellationToken cancellationToken)Task ContinueWith(Action<Task> continuationAction, TaskScheduler scheduler)Task ContinueWith(Action<Task> continuationAction, TaskContinuationOptions continuationOptions)Task ContinueWith(Action<Task> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task ContinueWith(Action<Task, object> continuationAction, object state)Task ContinueWith(Action<Task, object> continuationAction, object state, CancellationToken cancellationToken)Task ContinueWith(Action<Task, object> continuationAction, object state, TaskScheduler scheduler)Task ContinueWith(Action<Task, object> continuationAction, object state, TaskContinuationOptions continuationOptions)Task ContinueWith(Action<Task, object> continuationAction, object state, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TResult> ContinueWith<TResult>(Func<Task, TResult> continuationFunction)Task<TResult> ContinueWith<TResult>(Func<Task, TResult> continuationFunction, CancellationToken cancellationToken)Task<TResult> ContinueWith<TResult>(Func<Task, TResult> continuationFunction, TaskScheduler scheduler)Task<TResult> ContinueWith<TResult>(Func<Task, TResult> continuationFunction, TaskContinuationOptions continuationOptions)Task<TResult> ContinueWith<TResult>(Func<Task, TResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TResult> ContinueWith<TResult>(Func<Task, object, TResult> continuationFunction, object state)Task<TResult> ContinueWith<TResult>(Func<Task, object, TResult> continuationFunction, object state, CancellationToken cancellationToken)Task<TResult> ContinueWith<TResult>(Func<Task, object, TResult> continuationFunction, object state, TaskScheduler scheduler)Task<TResult> ContinueWith<TResult>(Func<Task, object, TResult> continuationFunction, object state, TaskContinuationOptions continuationOptions)Task<TResult> ContinueWith<TResult>(Func<Task, object, TResult> continuationFunction, object state, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) |
Delay | Delay(value)Delay([ :delay = … ])Delay([ :millisecondsDelay = … ])Delay([ :delay = …, :timeProvider = … ])Delay([ :delay = …, :cancellationToken = … ]) | static Task Delay(TimeSpan delay)static Task Delay(TimeSpan delay, TimeProvider timeProvider)static Task Delay(TimeSpan delay, CancellationToken cancellationToken)static Task Delay(TimeSpan delay, TimeProvider timeProvider, CancellationToken cancellationToken)static Task Delay(int millisecondsDelay)static Task Delay(int millisecondsDelay, CancellationToken cancellationToken) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
FromCanceled | FromCanceled(p1) | static Task FromCanceled(CancellationToken cancellationToken)static Task<TResult> FromCanceled<TResult>(CancellationToken cancellationToken) |
FromException | FromException(p1) | static Task FromException(Exception exception)static Task<TResult> FromException<TResult>(Exception exception) |
FromResult | FromResult(p1) | static Task<TResult> FromResult<TResult>(TResult result) |
GetAwaiter | callMethod("GetAwaiter",[]) | TaskAwaiter GetAwaiter() |
Run | Run(value)Run([ :action = … ])Run([ :function = … ])Run([ :action = …, :cancellationToken = … ])Run([ :function = …, :cancellationToken = … ]) | static Task Run(Action action)static Task Run(Action action, CancellationToken cancellationToken)static Task<TResult> Run<TResult>(Func<TResult> function)static Task<TResult> Run<TResult>(Func<TResult> function, CancellationToken cancellationToken)static Task Run(Func<Task> function)static Task Run(Func<Task> function, CancellationToken cancellationToken)static Task<TResult> Run<TResult>(Func<Task<TResult>> function)static Task<TResult> Run<TResult>(Func<Task<TResult>> function, CancellationToken cancellationToken) |
RunSynchronously | callMethod("RunSynchronously",[])callMethod("RunSynchronously",[p1]) | void RunSynchronously()void RunSynchronously(TaskScheduler scheduler) |
Start | callMethod("Start",[])callMethod("Start",[p1]) | void Start()void Start(TaskScheduler scheduler) |
Wait | Wait(NULL)Wait(value)Wait([ :timeout = … ])Wait([ :cancellationToken = … ])Wait([ :millisecondsTimeout = … ])Wait([ :timeout = …, :cancellationToken = … ]) | void Wait()bool Wait(TimeSpan timeout)bool Wait(TimeSpan timeout, CancellationToken cancellationToken)void Wait(CancellationToken cancellationToken)bool Wait(int millisecondsTimeout)bool Wait(int millisecondsTimeout, CancellationToken cancellationToken) |
WaitAll | WaitAll(value)WaitAll([ :tasks = … ])WaitAll([ :tasks = …, :timeout = … ])WaitAll([ :tasks = …, :millisecondsTimeout = … ])WaitAll([ :tasks = …, :cancellationToken = … ]) | static void WaitAll(Task[] tasks)static void WaitAll(ReadOnlySpan<Task> tasks)static bool WaitAll(Task[] tasks, TimeSpan timeout)static bool WaitAll(Task[] tasks, int millisecondsTimeout)static void WaitAll(Task[] tasks, CancellationToken cancellationToken)static bool WaitAll(Task[] tasks, int millisecondsTimeout, CancellationToken cancellationToken)static void WaitAll(IEnumerable<Task> tasks, CancellationToken cancellationToken = …) |
WaitAny | WaitAny(value)WaitAny([ :tasks = … ])WaitAny([ :tasks = …, :timeout = … ])WaitAny([ :tasks = …, :cancellationToken = … ])WaitAny([ :tasks = …, :millisecondsTimeout = … ]) | static int WaitAny(Task[] tasks)static int WaitAny(Task[] tasks, TimeSpan timeout)static int WaitAny(Task[] tasks, CancellationToken cancellationToken)static int WaitAny(Task[] tasks, int millisecondsTimeout)static int WaitAny(Task[] tasks, int millisecondsTimeout, CancellationToken cancellationToken) |
WaitAsync | WaitAsync(value)WaitAsync([ :cancellationToken = … ])WaitAsync([ :timeout = … ])WaitAsync([ :timeout = …, :timeProvider = … ])WaitAsync([ :timeout = …, :cancellationToken = … ]) | Task WaitAsync(CancellationToken cancellationToken)Task WaitAsync(TimeSpan timeout)Task WaitAsync(TimeSpan timeout, TimeProvider timeProvider)Task WaitAsync(TimeSpan timeout, CancellationToken cancellationToken)Task WaitAsync(TimeSpan timeout, TimeProvider timeProvider, CancellationToken cancellationToken) |
WhenAll | WhenAll(p1) | static Task WhenAll(IEnumerable<Task> tasks)static Task WhenAll(Task[] tasks)static Task WhenAll(ReadOnlySpan<Task> tasks)static Task<TResult[]> WhenAll<TResult>(IEnumerable<Task<TResult>> tasks)static Task<TResult[]> WhenAll<TResult>(Task<TResult>[] tasks)static Task<TResult[]> WhenAll<TResult>(ReadOnlySpan<Task<TResult>> tasks) |
WhenAny | WhenAny(value)WhenAny([ :tasks = … ])WhenAny([ :task1 = …, :task2 = … ]) | static Task<Task> WhenAny(Task[] tasks)static Task<Task> WhenAny(ReadOnlySpan<Task> tasks)static Task<Task> WhenAny(Task task1, Task task2)static Task<Task> WhenAny(IEnumerable<Task> tasks)static Task<Task<TResult>> WhenAny<TResult>(Task<TResult>[] tasks)static Task<Task<TResult>> WhenAny<TResult>(ReadOnlySpan<Task<TResult>> tasks)static Task<Task<TResult>> WhenAny<TResult>(Task<TResult> task1, Task<TResult> task2)static Task<Task<TResult>> WhenAny<TResult>(IEnumerable<Task<TResult>> tasks) |
WhenEach | WhenEach(p1) | static IAsyncEnumerable<Task> WhenEach(Task[] tasks)static IAsyncEnumerable<Task> WhenEach(ReadOnlySpan<Task> tasks)static IAsyncEnumerable<Task> WhenEach(IEnumerable<Task> tasks)static IAsyncEnumerable<Task<TResult>> WhenEach<TResult>(Task<TResult>[] tasks)static IAsyncEnumerable<Task<TResult>> WhenEach<TResult>(ReadOnlySpan<Task<TResult>> tasks)static IAsyncEnumerable<Task<TResult>> WhenEach<TResult>(IEnumerable<Task<TResult>> tasks) |
Yield | Yield() | static YieldAwaitable Yield() |
Task1 class · extends Task
System.Threading.Tasks.Task`1 · assembly System.Private.CoreLib
Implements: IAsyncResult, IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Result | TResult | read | o.Result |
Factory | TaskFactory<TResult> | read · static | o.getFactory() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ContinueWith | ContinueWith(value)ContinueWith([ :continuationFunction = … ])ContinueWith([ :continuationFunction = …, :cancellationToken = … ])ContinueWith([ :continuationFunction = …, :scheduler = … ])ContinueWith([ :continuationFunction = …, :continuationOptions = … ]) | Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, CancellationToken cancellationToken)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, TaskContinuationOptions continuationOptions)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, object, TNewResult> continuationFunction, object state)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, object, TNewResult> continuationFunction, object state, CancellationToken cancellationToken)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, object, TNewResult> continuationFunction, object state, TaskScheduler scheduler)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, object, TNewResult> continuationFunction, object state, TaskContinuationOptions continuationOptions)Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, object, TNewResult> continuationFunction, object state, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) |
Members of the base class are inherited.
TaskAsyncEnumerableExtensions class static
System.Threading.Tasks.TaskAsyncEnumerableExtensions · assembly System.Private.CoreLib
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ConfigureAwait | ConfigureAwait(p1,p2) | static ConfiguredAsyncDisposable ConfigureAwait(IAsyncDisposable source, bool continueOnCapturedContext)static ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait<T>(IAsyncEnumerable<T> source, bool continueOnCapturedContext) |
ToBlockingEnumerable | ToBlockingEnumerable([ :source = …, :cancellationToken = … ]) | static IEnumerable<T> ToBlockingEnumerable<T>(IAsyncEnumerable<T> source, CancellationToken cancellationToken = …) |
WithCancellation | WithCancellation(p1,p2) | static ConfiguredCancelableAsyncEnumerable<T> WithCancellation<T>(IAsyncEnumerable<T> source, CancellationToken cancellationToken) |
TaskCanceledException class · extends OperationCanceledException
System.Threading.Tasks.TaskCanceledException · assembly System.Private.CoreLib
Implements: ISerializable
Constructors
new TaskCanceledException() |
new TaskCanceledException(string message) |
new TaskCanceledException(string message, Exception innerException) |
new TaskCanceledException(string message, Exception innerException, CancellationToken token) |
new TaskCanceledException(Task task) |
Ring: new TaskCanceledException(args) uses one constructor; the others are chosen by the parameter names: new TaskCanceledException().@New([ :param = value ]) or dnNew("TaskCanceledException",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Task | Task | read | o.Task |
Members of the base class are inherited.
TaskCompletionSource class
System.Threading.Tasks.TaskCompletionSource · assembly System.Private.CoreLib
Constructors
new TaskCompletionSource() |
new TaskCompletionSource(TaskCreationOptions creationOptions) |
new TaskCompletionSource(object state) |
new TaskCompletionSource(object state, TaskCreationOptions creationOptions) |
Ring: new TaskCompletionSource(args) uses one constructor; the others are chosen by the parameter names: new TaskCompletionSource().@New([ :param = value ]) or dnNew("TaskCompletionSource",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Task | Task | read | o.Task |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
SetCanceled | callMethod("SetCanceled",[])callMethod("SetCanceled",[p1]) | void SetCanceled()void SetCanceled(CancellationToken cancellationToken) |
SetException | SetException(p1) | void SetException(Exception exception)void SetException(IEnumerable<Exception> exceptions) |
SetFromTask | SetFromTask(p1) | void SetFromTask(Task completedTask) |
SetResult | callMethod("SetResult",[]) | void SetResult() |
TrySetCanceled | callMethod("TrySetCanceled",[])callMethod("TrySetCanceled",[p1]) | bool TrySetCanceled()bool TrySetCanceled(CancellationToken cancellationToken) |
TrySetException | TrySetException(p1) | bool TrySetException(Exception exception)bool TrySetException(IEnumerable<Exception> exceptions) |
TrySetFromTask | TrySetFromTask(p1) | bool TrySetFromTask(Task completedTask) |
TrySetResult | callMethod("TrySetResult",[]) | bool TrySetResult() |
TaskCompletionSource1 class
System.Threading.Tasks.TaskCompletionSource`1 · assembly System.Private.CoreLib
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Task | Task<TResult> | read | o.Task |
TaskExtensions class static
System.Threading.Tasks.TaskExtensions · assembly System.Private.CoreLib
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Unwrap | Unwrap(p1) | static Task Unwrap(Task<Task> task)static Task<TResult> Unwrap<TResult>(Task<Task<TResult>> task) |
TaskFactory class
System.Threading.Tasks.TaskFactory · assembly System.Private.CoreLib
Constructors
new TaskFactory() |
new TaskFactory(CancellationToken cancellationToken) |
new TaskFactory(TaskScheduler scheduler) |
new TaskFactory(TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions) |
new TaskFactory(CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) |
Ring: new TaskFactory(args) uses one constructor; the others are chosen by the parameter names: new TaskFactory().@New([ :param = value ]) or dnNew("TaskFactory",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
CancellationToken | CancellationToken | read | o.CancellationToken |
Scheduler | TaskScheduler | read | o.Scheduler |
CreationOptions | TaskCreationOptions | read | o.CreationOptions |
ContinuationOptions | TaskContinuationOptions | read | o.ContinuationOptions |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ContinueWhenAll | ContinueWhenAll([ :tasks = …, :continuationAction = … ])ContinueWhenAll([ :tasks = …, :continuationFunction = … ])ContinueWhenAll([ :tasks = …, :continuationAction = …, :cancellationToken = … ])ContinueWhenAll([ :tasks = …, :continuationAction = …, :continuationOptions = … ]) | Task ContinueWhenAll(Task[] tasks, Action<Task[]> continuationAction)Task ContinueWhenAll(Task[] tasks, Action<Task[]> continuationAction, CancellationToken cancellationToken)Task ContinueWhenAll(Task[] tasks, Action<Task[]> continuationAction, TaskContinuationOptions continuationOptions)Task ContinueWhenAll(Task[] tasks, Action<Task[]> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>[]> continuationAction)Task ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>[]> continuationAction, CancellationToken cancellationToken)Task ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>[]> continuationAction, TaskContinuationOptions continuationOptions)Task ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>[]> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TResult> ContinueWhenAll<TResult>(Task[] tasks, Func<Task[], TResult> continuationFunction)Task<TResult> ContinueWhenAll<TResult>(Task[] tasks, Func<Task[], TResult> continuationFunction, CancellationToken cancellationToken)Task<TResult> ContinueWhenAll<TResult>(Task[] tasks, Func<Task[], TResult> continuationFunction, TaskContinuationOptions continuationOptions)Task<TResult> ContinueWhenAll<TResult>(Task[] tasks, Func<Task[], TResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TResult> ContinueWhenAll<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction)Task<TResult> ContinueWhenAll<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction, CancellationToken cancellationToken)Task<TResult> ContinueWhenAll<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction, TaskContinuationOptions continuationOptions)Task<TResult> ContinueWhenAll<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) |
ContinueWhenAny | ContinueWhenAny([ :tasks = …, :continuationAction = … ])ContinueWhenAny([ :tasks = …, :continuationFunction = … ])ContinueWhenAny([ :tasks = …, :continuationAction = …, :cancellationToken = … ])ContinueWhenAny([ :tasks = …, :continuationAction = …, :continuationOptions = … ]) | Task ContinueWhenAny(Task[] tasks, Action<Task> continuationAction)Task ContinueWhenAny(Task[] tasks, Action<Task> continuationAction, CancellationToken cancellationToken)Task ContinueWhenAny(Task[] tasks, Action<Task> continuationAction, TaskContinuationOptions continuationOptions)Task ContinueWhenAny(Task[] tasks, Action<Task> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TResult> ContinueWhenAny<TResult>(Task[] tasks, Func<Task, TResult> continuationFunction)Task<TResult> ContinueWhenAny<TResult>(Task[] tasks, Func<Task, TResult> continuationFunction, CancellationToken cancellationToken)Task<TResult> ContinueWhenAny<TResult>(Task[] tasks, Func<Task, TResult> continuationFunction, TaskContinuationOptions continuationOptions)Task<TResult> ContinueWhenAny<TResult>(Task[] tasks, Func<Task, TResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task<TResult> ContinueWhenAny<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction)Task<TResult> ContinueWhenAny<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction, CancellationToken cancellationToken)Task<TResult> ContinueWhenAny<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction, TaskContinuationOptions continuationOptions)Task<TResult> ContinueWhenAny<TAntecedentResult, TResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)Task ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>> continuationAction)Task ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>> continuationAction, CancellationToken cancellationToken)Task ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>> continuationAction, TaskContinuationOptions continuationOptions)Task ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Action<Task<TAntecedentResult>> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) |
FromAsync | FromAsync([ :asyncResult = …, :endMethod = … ])FromAsync([ :asyncResult = …, :endMethod = …, :creationOptions = … ])FromAsync([ :beginMethod = …, :endMethod = …, :state = … ])FromAsync([ :asyncResult = …, :endMethod = …, :creationOptions = …, :scheduler = … ]) | Task FromAsync(IAsyncResult asyncResult, Action<IAsyncResult> endMethod)Task FromAsync(IAsyncResult asyncResult, Action<IAsyncResult> endMethod, TaskCreationOptions creationOptions)Task FromAsync(IAsyncResult asyncResult, Action<IAsyncResult> endMethod, TaskCreationOptions creationOptions, TaskScheduler scheduler)Task FromAsync(Func<AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, object state)Task FromAsync(Func<AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, object state, TaskCreationOptions creationOptions)Task FromAsync<TArg1>(Func<TArg1, AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, TArg1 arg1, object state)Task FromAsync<TArg1>(Func<TArg1, AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, TArg1 arg1, object state, TaskCreationOptions creationOptions)Task FromAsync<TArg1, TArg2>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, TArg1 arg1, TArg2 arg2, object state)Task FromAsync<TArg1, TArg2>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, TArg1 arg1, TArg2 arg2, object state, TaskCreationOptions creationOptions)Task FromAsync<TArg1, TArg2, TArg3>(Func<TArg1, TArg2, TArg3, AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object state)Task FromAsync<TArg1, TArg2, TArg3>(Func<TArg1, TArg2, TArg3, AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object state, TaskCreationOptions creationOptions)Task<TResult> FromAsync<TResult>(IAsyncResult asyncResult, Func<IAsyncResult, TResult> endMethod)Task<TResult> FromAsync<TResult>(IAsyncResult asyncResult, Func<IAsyncResult, TResult> endMethod, TaskCreationOptions creationOptions)Task<TResult> FromAsync<TResult>(IAsyncResult asyncResult, Func<IAsyncResult, TResult> endMethod, TaskCreationOptions creationOptions, TaskScheduler scheduler)Task<TResult> FromAsync<TResult>(Func<AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, object state)Task<TResult> FromAsync<TResult>(Func<AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, object state, TaskCreationOptions creationOptions)Task<TResult> FromAsync<TArg1, TResult>(Func<TArg1, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, object state)Task<TResult> FromAsync<TArg1, TResult>(Func<TArg1, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, object state, TaskCreationOptions creationOptions)Task<TResult> FromAsync<TArg1, TArg2, TResult>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, object state)Task<TResult> FromAsync<TArg1, TArg2, TResult>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, object state, TaskCreationOptions creationOptions)Task<TResult> FromAsync<TArg1, TArg2, TArg3, TResult>(Func<TArg1, TArg2, TArg3, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object state)Task<TResult> FromAsync<TArg1, TArg2, TArg3, TResult>(Func<TArg1, TArg2, TArg3, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object state, TaskCreationOptions creationOptions) |
StartNew | StartNew(value)StartNew([ :action = … ])StartNew([ :function = … ])StartNew([ :action = …, :cancellationToken = … ])StartNew([ :action = …, :creationOptions = … ]) | Task StartNew(Action action)Task StartNew(Action action, CancellationToken cancellationToken)Task StartNew(Action action, TaskCreationOptions creationOptions)Task StartNew(Action action, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)Task StartNew(Action<object> action, object state)Task StartNew(Action<object> action, object state, CancellationToken cancellationToken)Task StartNew(Action<object> action, object state, TaskCreationOptions creationOptions)Task StartNew(Action<object> action, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)Task<TResult> StartNew<TResult>(Func<TResult> function)Task<TResult> StartNew<TResult>(Func<TResult> function, CancellationToken cancellationToken)Task<TResult> StartNew<TResult>(Func<TResult> function, TaskCreationOptions creationOptions)Task<TResult> StartNew<TResult>(Func<TResult> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)Task<TResult> StartNew<TResult>(Func<object, TResult> function, object state)Task<TResult> StartNew<TResult>(Func<object, TResult> function, object state, CancellationToken cancellationToken)Task<TResult> StartNew<TResult>(Func<object, TResult> function, object state, TaskCreationOptions creationOptions)Task<TResult> StartNew<TResult>(Func<object, TResult> function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler) |
TaskFactory1 class
System.Threading.Tasks.TaskFactory`1 · assembly System.Private.CoreLib
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
CancellationToken | CancellationToken | read | o.CancellationToken |
Scheduler | TaskScheduler | read | o.Scheduler |
CreationOptions | TaskCreationOptions | read | o.CreationOptions |
ContinuationOptions | TaskContinuationOptions | read | o.ContinuationOptions |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ContinueWhenAll | ContinueWhenAll([ :tasks = …, :continuationFunction = … ])ContinueWhenAll([ :tasks = …, :continuationFunction = …, :cancellationToken = … ])ContinueWhenAll([ :tasks = …, :continuationFunction = …, :continuationOptions = … ])ContinueWhenAll([ :tasks = …, :continuationFunction = …, :cancellationToken = …, :continuationOptions = …, :scheduler = … ]) | Task<TResult> ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction)Task<TResult> ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction, CancellationToken cancellationToken)Task<TResult> ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction, TaskContinuationOptions continuationOptions)Task<TResult> ContinueWhenAll<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>[], TResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) |
ContinueWhenAny | ContinueWhenAny([ :tasks = …, :continuationFunction = … ])ContinueWhenAny([ :tasks = …, :continuationFunction = …, :cancellationToken = … ])ContinueWhenAny([ :tasks = …, :continuationFunction = …, :continuationOptions = … ])ContinueWhenAny([ :tasks = …, :continuationFunction = …, :cancellationToken = …, :continuationOptions = …, :scheduler = … ]) | Task<TResult> ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction)Task<TResult> ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction, CancellationToken cancellationToken)Task<TResult> ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction, TaskContinuationOptions continuationOptions)Task<TResult> ContinueWhenAny<TAntecedentResult>(Task<TAntecedentResult>[] tasks, Func<Task<TAntecedentResult>, TResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) |
FromAsync | FromAsync([ :beginMethod = …, :endMethod = …, :arg1 = …, :state = … ])FromAsync([ :beginMethod = …, :endMethod = …, :arg1 = …, :state = …, :creationOptions = … ])FromAsync([ :beginMethod = …, :endMethod = …, :arg1 = …, :arg2 = …, :state = … ])FromAsync([ :beginMethod = …, :endMethod = …, :arg1 = …, :arg2 = …, :state = …, :creationOptions = … ]) | Task<TResult> FromAsync<TArg1>(Func<TArg1, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, object state)Task<TResult> FromAsync<TArg1>(Func<TArg1, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, object state, TaskCreationOptions creationOptions)Task<TResult> FromAsync<TArg1, TArg2>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, object state)Task<TResult> FromAsync<TArg1, TArg2>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, object state, TaskCreationOptions creationOptions)Task<TResult> FromAsync<TArg1, TArg2, TArg3>(Func<TArg1, TArg2, TArg3, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object state)Task<TResult> FromAsync<TArg1, TArg2, TArg3>(Func<TArg1, TArg2, TArg3, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, TArg2 arg2, TArg3 arg3, object state, TaskCreationOptions creationOptions) |
TaskScheduler class abstract
System.Threading.Tasks.TaskScheduler · assembly System.Private.CoreLib
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
MaximumConcurrencyLevel | int | read | o.MaximumConcurrencyLevel |
Id | int | read | o.Id |
Default | TaskScheduler | read · static | o.Default |
Current | TaskScheduler | read · static | o.Current |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
FromCurrentSynchronizationContext | FromCurrentSynchronizationContext() | static TaskScheduler FromCurrentSynchronizationContext() |
Events
| Event | Handler type | In Ring |
|---|---|---|
UnobservedTaskException | EventHandler<UnobservedTaskExceptionEventArgs> | o.setUnobservedTaskExceptionEvent(code) · o.clearUnobservedTaskExceptionEvent() |
TaskSchedulerException class · extends Exception
System.Threading.Tasks.TaskSchedulerException · assembly System.Private.CoreLib
Implements: ISerializable
Constructors
new TaskSchedulerException() |
new TaskSchedulerException(string message) |
new TaskSchedulerException(Exception innerException) |
new TaskSchedulerException(string message, Exception innerException) |
Ring: new TaskSchedulerException(args) uses one constructor; the others are chosen by the parameter names: new TaskSchedulerException().@New([ :param = value ]) or dnNew("TaskSchedulerException",[ :param = value ]).
Members of the base class are inherited.
TaskToAsyncResult class static
System.Threading.Tasks.TaskToAsyncResult · assembly System.Private.CoreLib
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Begin | Begin(p1,p2,p3) | static IAsyncResult Begin(Task task, AsyncCallback callback, object state) |
End | @End(p1) | static void End(IAsyncResult asyncResult)static TResult End<TResult>(IAsyncResult asyncResult) |
Unwrap | Unwrap(p1) | static Task Unwrap(IAsyncResult asyncResult)static Task<TResult> Unwrap<TResult>(IAsyncResult asyncResult) |
UnobservedTaskExceptionEventArgs class · extends EventArgs
System.Threading.Tasks.UnobservedTaskExceptionEventArgs · assembly System.Private.CoreLib
Constructors
new UnobservedTaskExceptionEventArgs(AggregateException exception) |
Ring: new UnobservedTaskExceptionEventArgs(args) uses one constructor; the others are chosen by the parameter names: new UnobservedTaskExceptionEventArgs().@New([ :param = value ]) or dnNew("UnobservedTaskExceptionEventArgs",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Observed | bool | read | o.Observed |
Exception | AggregateException | read | o.Exception |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
SetObserved | callMethod("SetObserved",[]) | void SetObserved() |
Members of the base class are inherited.
ValueTask struct
System.Threading.Tasks.ValueTask · assembly System.Private.CoreLib
Constructors
new ValueTask(Task task) |
new ValueTask(IValueTaskSource source, short token) |
Ring: new ValueTask(args) uses one constructor; the others are chosen by the parameter names: new ValueTask().@New([ :param = value ]) or dnNew("ValueTask",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IsCompleted | bool | read | o.IsCompleted |
IsCompletedSuccessfully | bool | read | o.IsCompletedSuccessfully |
IsFaulted | bool | read | o.IsFaulted |
IsCanceled | bool | read | o.IsCanceled |
CompletedTask | ValueTask | read · static | o.CompletedTask |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AsTask | callMethod("AsTask",[]) | Task AsTask() |
ConfigureAwait | callMethod("ConfigureAwait",[p1]) | ConfiguredValueTaskAwaitable ConfigureAwait(bool continueOnCapturedContext) |
Equals | Equals(p1) | bool Equals(object obj)bool Equals(ValueTask other) |
FromCanceled | FromCanceled(p1) | static ValueTask FromCanceled(CancellationToken cancellationToken)static ValueTask<TResult> FromCanceled<TResult>(CancellationToken cancellationToken) |
FromException | FromException(p1) | static ValueTask FromException(Exception exception)static ValueTask<TResult> FromException<TResult>(Exception exception) |
FromResult | FromResult(p1) | static ValueTask<TResult> FromResult<TResult>(TResult result) |
GetAwaiter | callMethod("GetAwaiter",[]) | ValueTaskAwaiter GetAwaiter() |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
Preserve | callMethod("Preserve",[]) | ValueTask Preserve() |
ValueTask1 struct
System.Threading.Tasks.ValueTask`1 · assembly System.Private.CoreLib
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IsCompleted | bool | read | o.IsCompleted |
IsCompletedSuccessfully | bool | read | o.IsCompletedSuccessfully |
IsFaulted | bool | read | o.IsFaulted |
IsCanceled | bool | read | o.IsCanceled |
Result | TResult | read | o.Result |