Skip to content

Simple way to ensure all async event handlers (delegates) are awaited.

Notifications You must be signed in to change notification settings

matthewd98/AsyncEventHandler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

AsyncEventHandler

Simple way to ensure all async event handlers (delegates) are awaited.

This is necessary because C# events are unable to await async event handlers (instead they are executed in fire-and-forget fashion). This is because events existed in the language well before the async-await pattern was introduced. An event is just simply a list of event handlers (or delegates or callbacks) and when the event is raised, the event handlers are invoked sequentially (i.e. one after the other).

About

Simple way to ensure all async event handlers (delegates) are awaited.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages