One important use of async/await is proper cancellation processing. Create a CancellationTokenSource, pass a CancellationToken, and handle OperationCanceledException. All this, however, faces some difficulties to implement efficiently. Based on a pattern I faced when implementing a high-speed network client called AlterNats, I will show how to write a process for…