Method ListenAndLogAsyncErroneous
ListenAndLogAsyncErroneous(Command, CancellationToken)
There is a problem with CliWrap ListenAsync - it does not correctly process cancellation and throws unobserved exception upon GC
It happens because SemaphoreSlim used by Channel is already disposed(due to cancellation) when the process completes
Declaration
public static IAsyncEnumerable<CommandEvent> ListenAndLogAsyncErroneous(this Command command, CancellationToken cancellationToken = default)
Parameters
Returns