Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ReceiveAsync< TOutput >() [4/4]

static Task< TOutput > System.Threading.Tasks.Dataflow.DataflowBlock.ReceiveAsync< TOutput > ( this ISourceBlock< TOutput > source,
TimeSpan timeout,
CancellationToken cancellationToken )
inlinestatic

Definition at line 1342 of file DataflowBlock.cs.

1343 {
1344 if (source == null)
1345 {
1346 throw new ArgumentNullException("source");
1347 }
1349 {
1350 throw new ArgumentOutOfRangeException("timeout", System.SR.ArgumentOutOfRange_NeedNonNegOrNegative1);
1351 }
1352 return source.ReceiveCore(attemptTryReceive: true, timeout, cancellationToken);
1353 }
static string ArgumentOutOfRange_NeedNonNegOrNegative1
Definition SR.cs:1072
Definition SR.cs:7
static bool IsValidTimeout(TimeSpan timeout)
Definition Common.cs:252

References System.SR.ArgumentOutOfRange_NeedNonNegOrNegative1, System.cancellationToken, System.Threading.Tasks.Dataflow.Internal.Common.IsValidTimeout(), System.source, and System.timeout.