SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.world to JavaScript@programming.dev · 13 days ago

UI Algorithms: A Tiny Promise Queue

blog.julik.nl

external-link
message-square
0
fedilink
  • cross-posted to:
  • librebyte@lemmy.ml
3
external-link

UI Algorithms: A Tiny Promise Queue

blog.julik.nl

cm0002@lemmy.world to JavaScript@programming.dev · 13 days ago
message-square
0
fedilink
  • cross-posted to:
  • librebyte@lemmy.ml
I’ve needed this before - a couple of times, just like that other thing. A situation where I am doing uploads using AJAX - or performing some other long-running frontend tasks, and I don’t want to overwhelm the system with all of them running at the same time. These tasks may be, in turn, triggering other tasks… you know the drill. And yet again, the published implementations such as p-queue and promise-queue-plus and the one described in this blog post left me wondering: why do they have to be so big? And do I really have to carry an NPM dependency for something so small?
alert-triangle
You must log in or register to comment.

JavaScript@programming.dev

javascript@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !javascript@programming.dev
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 4 users / day
  • 11 users / week
  • 72 users / month
  • 286 users / 6 months
  • 11 local subscribers
  • 2.37K subscribers
  • 170 Posts
  • 357 Comments
  • Modlog
  • mods:
  • Erlingur@programming.dev
  • Ategon@programming.dev
  • nick@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org