{"id":15956597,"url":"https://github.com/tpaksu/jquery.promisque","last_synced_at":"2026-04-13T23:02:31.450Z","repository":{"id":146021478,"uuid":"169235009","full_name":"tpaksu/jquery.promisque","owner":"tpaksu","description":"A lightweight (1KB) jQuery promises (deferreds) queue system. Can run n queues in parallel at a time. Can be paused, resumed and cleared.","archived":false,"fork":false,"pushed_at":"2019-02-12T19:57:00.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-18T07:36:12.766Z","etag":null,"topics":["deferred","deferred-queue","jquery","promise","queue"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tpaksu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-05T12:08:47.000Z","updated_at":"2023-07-17T10:10:13.000Z","dependencies_parsed_at":"2023-04-11T15:46:19.316Z","dependency_job_id":null,"html_url":"https://github.com/tpaksu/jquery.promisque","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tpaksu/jquery.promisque","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpaksu%2Fjquery.promisque","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpaksu%2Fjquery.promisque/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpaksu%2Fjquery.promisque/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpaksu%2Fjquery.promisque/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpaksu","download_url":"https://codeload.github.com/tpaksu/jquery.promisque/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpaksu%2Fjquery.promisque/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31774547,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deferred","deferred-queue","jquery","promise","queue"],"created_at":"2024-10-07T13:33:21.517Z","updated_at":"2026-04-13T23:02:31.435Z","avatar_url":"https://github.com/tpaksu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jquery.promisque\n\nA jQuery based promise queue which queues promises to run N by N in parallel.\n\nCan be used in two methods:\n\n- Run N items and wait for all of them to finish, then run N items again\n  (anything but \"pipe\" mode, default)\n- Run N items and once one of it finishes, run the next job on queue, run N jobs in parallel until queue gets empty.\n  (\"pipe\" mode)\n\n### Methods\n\n- **push(callback, arg1, arg2, ..)** : pushes a new promise to the queue, can be pushed while running or stopped. Can use the given args in the callback.\n- **next()** : gets the next item from the queue and removes it, if queue is empty returns null. It's an internal method, but if you need to skip an item from the stack, you can use it.\n- **run(count[, mode])** : runs the queue, if mode is empty, the default method is used, after pause, it resumes the queue\n- **pause()** : pauses the queue after current promises are finished\n- **clear()** : clears the queue\n- **stop()** : stops and clears the queue\n\n### Example\n\n    var queue = new Promisque();\n    queue.push( Promise1 );\n    queue.push(Promise2);\n    queue.push(PromiseN);\n    queue.run(4, \"pipe\");\n\n or just:\n\n    (new Promisque()).push(Promise1).push(Promise2).push(PromiseN).run(4, \"pipe\");\n    \n### License\n\nThis is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n\nIn jurisdictions that recognize copyright laws, the author or authors\nof this software dedicate any and all copyright interest in the\nsoftware to the public domain. We make this dedication for the benefit\nof the public at large and to the detriment of our heirs and\nsuccessors. We intend this dedication to be an overt act of\nrelinquishment in perpetuity of all present and future rights to this\nsoftware under copyright law.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\nFor more information, please refer to \u003chttp://unlicense.org\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpaksu%2Fjquery.promisque","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpaksu%2Fjquery.promisque","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpaksu%2Fjquery.promisque/lists"}