Skip to content

Document issues with Concurrent Listeners in Promise.race and Event Loop Behavior #1195

@manualy

Description

@manualy

Hi,

I’m encountering an issue with handling multiple user interaction options in my application. Specifically, I want to allow users to interact via either callbackQueries or messages. To achieve this, I’ve been using Promise.race([Promise1, Promise2]) to wait for the first resolved interaction.

The issue occurs after several conversational flows, where unused listeners appear to linger in the event loop, delaying the triggering of the next interaction. As a result, I have to repeat the unused interaction multiple times before the current listener is activated.

I suspect this might be a bug, but it would also be great if a feature for handling multiple conversation choices could be added.

Thanks for your time, and I look forward to your insights on this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions