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
Currently, the logging module is using synchronous logic and running awaitable logic as anonymous functions to Task.Run. This should be unnecessary as the event handlers can be asynchronous functions. See here for the documentation on using events.
However, @iShauny has been encountering issues with using this pattern. He has been getting this error: a MessageReceived event handler is blocking the gateway. This suggests that a handler is not releasing control back to the async loop in time. See here for more details.
Additionally, it seems that some events can be dropped if they happen too quickly.
The text was updated successfully, but these errors were encountered:
Currently, the logging module is using synchronous logic and running awaitable logic as anonymous functions to
Task.Run
. This should be unnecessary as the event handlers can be asynchronous functions. See here for the documentation on using events.However, @iShauny has been encountering issues with using this pattern. He has been getting this error:
a MessageReceived event handler is blocking the gateway
. This suggests that a handler is not releasing control back to the async loop in time. See here for more details.Additionally, it seems that some events can be dropped if they happen too quickly.
The text was updated successfully, but these errors were encountered: