iocommander input and virtual input
This commit is contained in:
@@ -36,11 +36,7 @@ namespace Hawkeye.VisionBuilder.UI.Sources.Emulation
|
||||
//clear the channel if it is full
|
||||
if (_channel.Reader.Count > 0)
|
||||
{
|
||||
while (await _channel.Reader.WaitToReadAsync(token))
|
||||
{
|
||||
if (_channel.Reader.TryRead(out _)) continue;
|
||||
break;
|
||||
}
|
||||
while (_channel.Reader.TryRead(out _)) { }
|
||||
}
|
||||
//get the next image
|
||||
await Task.Run(new Action(() => _ = GetImageInternal(CancellationToken.None)), token);
|
||||
|
||||
Reference in New Issue
Block a user