Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Threading.Tasks.Parallel Class Reference

Classes

class  AsyncForEachAsyncState
 
class  ForEachAsyncState
 
class  SyncForEachAsyncState
 

Static Public Member Functions

static void Invoke (params Action[] actions)
 
static void Invoke (ParallelOptions parallelOptions, params Action[] actions)
 
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)
 
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)
 
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)
 

Static Package Attributes

static int s_forkJoinContextID
 
static readonly ParallelOptions s_defaultParallelOptions = new ParallelOptions()
 

Properties

static int DefaultDegreeOfParallelism [get]
 

Static Private Member Functions

static bool CheckTimeoutReached (int timeoutOccursAt)
 
static int ComputeTimeoutPoint (int timeoutLength)
 
static ParallelLoopResult ForWorker< TLocal > (int fromInclusive, int toExclusive, ParallelOptions parallelOptions, Action< int > body, Action< int, ParallelLoopState > bodyWithState, Func< int, ParallelLoopState, TLocal, TLocal > bodyWithLocal, Func< TLocal > localInit, Action< TLocal > localFinally)
 
static ParallelLoopResult ForWorker64< TLocal > (long fromInclusive, long toExclusive, ParallelOptions parallelOptions, Action< long > body, Action< long, ParallelLoopState > bodyWithState, Func< long, ParallelLoopState, TLocal, TLocal > bodyWithLocal, Func< TLocal > localInit, Action< TLocal > localFinally)
 
static ParallelLoopResult ForEachWorker< TSource, TLocal > (IEnumerable< TSource > source, ParallelOptions parallelOptions, Action< TSource > body, Action< TSource, ParallelLoopState > bodyWithState, Action< TSource, ParallelLoopState, long > bodyWithStateAndIndex, Func< TSource, ParallelLoopState, TLocal, TLocal > bodyWithStateAndLocal, Func< TSource, ParallelLoopState, long, TLocal, TLocal > bodyWithEverything, Func< TLocal > localInit, Action< TLocal > localFinally)
 
static ParallelLoopResult ForEachWorker< TSource, TLocal > (TSource[] array, ParallelOptions parallelOptions, Action< TSource > body, Action< TSource, ParallelLoopState > bodyWithState, Action< TSource, ParallelLoopState, long > bodyWithStateAndIndex, Func< TSource, ParallelLoopState, TLocal, TLocal > bodyWithStateAndLocal, Func< TSource, ParallelLoopState, long, TLocal, TLocal > bodyWithEverything, Func< TLocal > localInit, Action< TLocal > localFinally)
 
static ParallelLoopResult ForEachWorker< TSource, TLocal > (IList< TSource > list, ParallelOptions parallelOptions, Action< TSource > body, Action< TSource, ParallelLoopState > bodyWithState, Action< TSource, ParallelLoopState, long > bodyWithStateAndIndex, Func< TSource, ParallelLoopState, TLocal, TLocal > bodyWithStateAndLocal, Func< TSource, ParallelLoopState, long, TLocal, TLocal > bodyWithEverything, Func< TLocal > localInit, Action< TLocal > localFinally)
 
static ParallelLoopResult PartitionerForEachWorker< TSource, TLocal > (Partitioner< TSource > source, ParallelOptions parallelOptions, Action< TSource > simpleBody, Action< TSource, ParallelLoopState > bodyWithState, Action< TSource, ParallelLoopState, long > bodyWithStateAndIndex, Func< TSource, ParallelLoopState, TLocal, TLocal > bodyWithStateAndLocal, Func< TSource, ParallelLoopState, long, TLocal, TLocal > bodyWithEverything, Func< TLocal > localInit, Action< TLocal > localFinally)
 
static OperationCanceledException ReduceToSingleCancellationException (ICollection exceptions, CancellationToken cancelToken)
 
static void ThrowSingleCancellationExceptionOrOtherException (ICollection exceptions, CancellationToken cancelToken, Exception otherException)
 
static Task ForEachAsync< TSource > (IEnumerable< TSource > source, int dop, TaskScheduler scheduler, CancellationToken cancellationToken, Func< TSource, CancellationToken, ValueTask > body)
 
static Task ForEachAsync< TSource > (IAsyncEnumerable< TSource > source, int dop, TaskScheduler scheduler, CancellationToken cancellationToken, Func< TSource, CancellationToken, ValueTask > body)
 

Detailed Description

Definition at line 8 of file Parallel.cs.


The documentation for this class was generated from the following file: