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

◆ FlushAsync() [2/2]

override Task System.IO.Stream.NullStream.FlushAsync ( CancellationToken cancellationToken)
inlinevirtual

Reimplemented from System.IO.Stream.

Definition at line 140 of file Stream.cs.

141 {
142 if (!cancellationToken.IsCancellationRequested)
143 {
144 return Task.CompletedTask;
145 }
147 }
static Task FromCanceled(CancellationToken cancellationToken)
Definition Task.cs:3363
static Task CompletedTask
Definition Task.cs:1120

References System.cancellationToken, System.Threading.Tasks.Task< TResult >.CompletedTask, and System.Threading.Tasks.Task< TResult >.FromCanceled().