开发者

How can we call event handler asynchronously for an event

开发者 https://www.devze.com 2023-03-21 08:04 出处:网络
Is there a way tosubscribe to an event and handle it asynchronously using the event+=EventHandler syntax or is there any workaround to ac开发者_如何转开发hieve itThe event/delegate system calls each o

Is there a way to subscribe to an event and handle it asynchronously using the event+=EventHandler syntax or is there any workaround to ac开发者_如何转开发hieve it


The event/delegate system calls each of the subscribed event handles synchronously on the thread the fires the event. To make the event handler processing be done asynchrounously, it has to be part of the function that you subscribe to the event.

0

精彩评论

暂无评论...
验证码 换一张
取 消