Created
June 2, 2020 18:21
-
-
Save behnamazimi/6597df2a77709818839fa1c3975ef323 to your computer and use it in GitHub Desktop.
ServiceWrapper.queue.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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