Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Threading.Tasks.Parallel.SyncForEachAsyncState< TSource > Class Template Referencesealed

Public Member Functions

 SyncForEachAsyncState (IEnumerable< TSource > source, Func< object, Task > taskBody, int dop, TaskScheduler scheduler, CancellationToken cancellationToken, Func< TSource, CancellationToken, ValueTask > body)
 
void Dispose ()
 
void QueueWorkerIfDopAvailable ()
 
bool SignalWorkerCompletedIterating ()
 
void RecordException (Exception e)
 
void Complete ()
 
void SetException (Exception exception)
 
void SetException (IEnumerable< Exception > exceptions)
 
void SetException (Exception exception)
 
void SetException (IEnumerable< Exception > exceptions)
 
bool TrySetException (Exception exception)
 
bool TrySetException (IEnumerable< Exception > exceptions)
 
bool TrySetException (Exception exception)
 
bool TrySetException (IEnumerable< Exception > exceptions)
 
void SetResult ()
 
void SetResult (TResult result)
 
bool TrySetResult ()
 
bool TrySetResult (TResult result)
 
void SetCanceled ()
 
void SetCanceled (CancellationToken cancellationToken)
 
void SetCanceled ()
 
void SetCanceled (CancellationToken cancellationToken)
 
bool TrySetCanceled ()
 
bool TrySetCanceled (CancellationToken cancellationToken)
 
bool TrySetCanceled ()
 
bool TrySetCanceled (CancellationToken cancellationToken)
 

Public Attributes

readonly IEnumerator< TSource > Enumerator
 
readonly Func< TSource, CancellationToken, ValueTaskLoopBody
 
readonly CancellationTokenSource Cancellation = new CancellationTokenSource()
 

Protected Attributes

readonly CancellationTokenRegistration _registration
 

Properties

Task Task [get]
 
Task< TResultTask [get]
 

Private Member Functions

void IThreadPoolWorkItem. Execute ()
 

Private Attributes

readonly CancellationToken _externalCancellationToken
 
readonly Func< object, Task_taskBody
 
readonly TaskScheduler _scheduler
 
readonly ExecutionContext _executionContext
 
int _completionRefCount
 
List< Exception_exceptions
 
int _remainingDop
 
readonly Task _task
 
readonly Task< TResult_task
 

Detailed Description

Definition at line 110 of file Parallel.cs.


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