Skip to content

Instantly share code, notes, and snippets.

@behnamazimi
Created June 2, 2020 18:21
Show Gist options
  • Save behnamazimi/6597df2a77709818839fa1c3975ef323 to your computer and use it in GitHub Desktop.
Save behnamazimi/6597df2a77709818839fa1c3975ef323 to your computer and use it in GitHub Desktop.
ServiceWrapper.queue.js
// this will fire immediately after adding to the queue
new ClientHandler({url: "https://reqres.in/api/users"})
.fire({parallel: true})
.then(res=> {
//...
})
// this will for its turn on queue
new ClientHandler({url: "https://reqres.in/api/users"})
.fire({parallel: true})
.then(res=> {
//...
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment