fallback support

This commit is contained in:
EugeneTes
2026-02-05 09:31:38 +01:00
parent 08da2c1e3e
commit f0ae32c9e5
8 changed files with 165 additions and 721 deletions

View File

@@ -11,6 +11,11 @@ public class SingleJobSource: IPrintJobSource
}
private Channel<PrintJob> _channel = Channel.CreateUnbounded<PrintJob>();
public Task StartAsync()
{
return Task.CompletedTask;
}
public async Task<PrintJob> GetNextJobAsync(CancellationToken cancellationToken)
{
return await _channel.Reader.ReadAsync(cancellationToken);