Skip to content

Instantly share code, notes, and snippets.

@neuecc
Created August 2, 2022 07:20
Embed
What would you like to do?
// Dispose will stop internal timer to prevent timer leak
using var cts = new CancellationTokenSource();
cts.CancelAfter(TimeSpan.FromMinutes(1));
await client.SendAsync(cts.Token);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment