You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implementing async / await (with priority on await) would greatly increase flexibility of EE. C# is becoming more and more asynchronous with each new version and by using async patterns we can free current thread while external work is being processed (querying a database, creating/saving a stream, waiting for an external library to do some work...). This is critical for web applications where threadpool is very limited and we need to free our threads as often as possible.
This suggestion hence proposes that async / await keywords would be recognized when parsing scripts.
Core of the problem here is that we need to "await" EventHandler which we can't do as it returns void. Something like DefferedEvents would be needed here - https://pedrolamas.github.io/DeferredEvents/
Currently this is not included in todo / roadmap document here- https://github.com/codingseb/ExpressionEvaluator/wiki/ExpressionEvaluator-Todo-ListImplementing
async
/await
(with priority onawait
) would greatly increase flexibility of EE. C# is becoming more and more asynchronous with each new version and by using async patterns we can free current thread while external work is being processed (querying a database, creating/saving a stream, waiting for an external library to do some work...). This is critical for web applications where threadpool is very limited and we need to free our threads as often as possible.This suggestion hence proposes that
async
/await
keywords would be recognized when parsing scripts.Backend:
Script:
Note that we would also need to support this on extension methods.
For the sake of supporting various syntaxes keywords should be remappable.
The text was updated successfully, but these errors were encountered: