Skip to content
Back

Is p-limit compatible with Appwrite?

  • 0
  • Tools
  • General
  • Web
Los Feliz
8 May, 2025, 05:19

I have a function that makes asynchronous calls to different Appwrite collections. This is how I make the call:

TypeScript
 await Promise.allSettled([
                deleteAllPosts(userId),  
                removeAllAvatars(userId), 
                removeAllReplies(userId),
                removeAllItems(userId),
                deleteUserHistory(userId)
            ]);

I asked gpt if I can optimize this process more, and it recommended to use p-limit. Is Appwrite compatible with p-limit?

TL;DR
Developers asking about `p-limit` compatibility with Appwrite for optimizing asynchronous calls in their code. They are currently using `Promise.allSettled` for multiple Appwrite collection operations.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more