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
So it looks like with a little more work we could replace the plugin system with the middleware system.
Important
It is important that calling fn() always results in the action being performed, and not just a coroutine being created. This is because the developer may wish to perform tasks after the action as run.
Therefore it would seem sensible that:
async middleware methods should always await fn
non-async middleware methods should not await fn
Lightbus will promise to pass appropriate callables in each case.
Required for #6 and #4.
This is going to have overlap with the plugin system. Either we should draw a clear distinction between the two, or we should remove the plugin sytem
The text was updated successfully, but these errors were encountered: