Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsyncApp vs App #1237

Open
Radu1999 opened this issue Jan 16, 2025 · 1 comment
Open

AsyncApp vs App #1237

Radu1999 opened this issue Jan 16, 2025 · 1 comment
Labels
area:async question Further information is requested

Comments

@Radu1999
Copy link

What is the difference in functionality between AsyncApp and App (how it handles events etc.)
I had an app built with App but when i moved to AsyncApp sometimes the bot responds to the same event twice, even though i used await ack().

@seratch seratch added question Further information is requested area:async labels Jan 17, 2025
@seratch
Copy link
Member

seratch commented Jan 17, 2025

Hi @Radu1999, thanks for asking the question! The key difference between App and AsyncApp is that AsyncApp is compatible with asyncio, the non-blocking event-loop mechanism provided by the Python runtime. As long as your app code uses the await keyword for all async function invocations, the code should work without any issues.

I had an app built with App but when i moved to AsyncApp sometimes the bot responds to the same event twice, even though i used await ack().

If you need further assistance with this, could you share the code you're trying to make functional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:async question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants