protected override async void OnReceived(byte[] buffer, long offset, long size) { base.OnReceived(buffer, offset, size); } Should I set async for base method?
Activity
shersh commentedon Sep 19, 2024
No. Never do async void
If you don’t even get the task back. You have no way of knowing when the function’s task has completed. —— Crash course in async and await | The Old New Thing
https://learn.microsoft.com/en-us/archive/msdn-magazine/2013/march/async-await-best-practices-in-asynchronous-programming