Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Threading.Tasks.Dataflow.DataflowBlock.ReceiveTarget< T > Class Template Referencesealed

Public Member Functions

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)
 
DataflowMessageStatus OfferMessage (DataflowMessageHeader messageHeader, TInput messageValue, ISourceBlock< TInput >? source, bool consumeToAccept)
 

Package Functions

 ReceiveTarget ()
 
bool TryCleanupAndComplete (ReceiveCoreByLinkingCleanupReason reason)
 

Static Package Functions

static Exception CreateExceptionForSourceCompletion ()
 
static Exception CreateExceptionForTimeout ()
 

Package Attributes

readonly CancellationTokenSource _cts = new CancellationTokenSource()
 
bool _cleanupReserved
 
CancellationToken _externalCancellationToken
 
CancellationTokenRegistration _regFromExternalCancellationToken
 
Timer _timer
 
IDisposable _unlink
 
Exception _receivedException
 

Static Package Attributes

static readonly TimerCallback CachedLinkingTimerCallback
 
static readonly Action< object > CachedLinkingCancellationCallback
 

Properties

object IncomingLock [get]
 
Task IDataflowBlock. Completion [get]
 
object DebuggerDisplayContent [get]
 
object IDebuggerDisplay. Content [get]
 
Task Task [get]
 
Task< TResultTask [get]
 

Private Member Functions

DataflowMessageStatus ITargetBlock< T >. OfferMessage (DataflowMessageHeader messageHeader, T messageValue, ISourceBlock< T > source, bool consumeToAccept)
 
void CleanupAndComplete (ReceiveCoreByLinkingCleanupReason reason)
 
void IDataflowBlock. Complete ()
 
void IDataflowBlock. Fault (Exception exception)
 

Private Attributes

T _receivedValue
 
readonly Task _task
 
readonly Task< TResult_task
 

Detailed Description

Definition at line 413 of file DataflowBlock.cs.


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