I want to await an async call inside my DataReceived method and want to make DataReceived itself async.
In the change notes under "New in v3.0.x", I found "Configurable sync vs async for firing DataReceived events (thank you @TheNybbler)", but I was unable to find further documentation or samples.
Is there a way to await async calls in DataReceived?
The Settings.UseAsyncDataReceivedEvents, when set to true, simply fires the event handler as an unawaited task. I'm not aware of a widely agreed-upon standard for async event handlers.
I want to await an async call inside my
DataReceived
method and want to makeDataReceived
itself async.In the change notes under "New in v3.0.x", I found "Configurable sync vs async for firing DataReceived events (thank you @TheNybbler)", but I was unable to find further documentation or samples.
Is there a way to await async calls in
DataReceived
?