1using System.Threading.Tasks;
10 private readonly TaskCompletionSource<bool> result;
11 private readonly
bool terminate;
18 public ConsoleFlush(
bool Terminate, TaskCompletionSource<bool> Result)
20 this.terminate = Terminate;
29 await System.Console.Out.FlushAsync();
34 this.result.TrySetResult(
true);
Used to signal end of queue has been reached.
ConsoleFlush(bool Terminate, TaskCompletionSource< bool > Result)
Used to signal end of queue has been reached.
override async Task Execute()
Executes the console operation.
Processes console tasks, such as input and output, in a serialized asynchronous manner.
Manages a Console operation.