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
It send works correctly but the update is not processed. I mean the update is stuck in pending updates. if I restart the bot it process update and doesn't drop it.
and new updates are being queued.
What am I missing in my code to drop update after processing?
The text was updated successfully, but these errors were encountered:
While the promise is pending, this function will assume control over the event loop. Internally, it will run() the default loop until the promise settles and then calls stop() to terminate execution of the loop. This means this function is more suited for short-lived promise executions when using promise-based APIs is not feasible. For long-running applications, using promise-based APIs by leveraging chained then() calls is usually preferable.
Therefore it will stop the loop which means it will stop new updates requests.
However, you can use coroutine() for that and use yield to get the same looking function.
I'm trying to use react/async:3.0 's await in closures.
It send works correctly but the update is not processed. I mean the update is stuck in pending updates. if I restart the bot it process update and doesn't drop it.
and new updates are being queued.
What am I missing in my code to drop update after processing?
The text was updated successfully, but these errors were encountered: