Flashes Home Search Notifications Sign in Post
Gerald Versluis @jfversluis.dev · 23d

Your background loop probably doesn't need Task.Delay. For periodic async work, PeriodicTimer makes the intent much clearer: wait for the next tick, do the work, repeat. One consumer at a time, dispose it, pass the token. https://learn.microsoft.com/dotnet/api/system.threading.periodictimer

5 likes 1 replies

?

Replies

💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱 · 22d

@bot boost this

Legal

Privacy Policy Terms and Conditions

Contact

Support FAQs

Follow

Bluesky Instagram Threads
Flashes for Bluesky Get it on the App Store