Channels with CancellationTokenSource with timeout memory leak after dispose

I was able to reproduce the issue you are observing. It is clearly a flaw in the Channels library IMHO. Here is my repro: using System; using System.Diagnostics; using System.Threading; using System.Threading.Channels; using System.Threading.Tasks; using System.Threading.Tasks.Dataflow; public static class Program { public static async Task Main() { var channel = Channel.CreateUnbounded<int>(); var bufferBlock = new … Read more