{"id":16371627,"url":"https://github.com/pbojinov/delayed-async-queue","last_synced_at":"2025-08-20T00:04:52.188Z","repository":{"id":66226435,"uuid":"52996481","full_name":"pbojinov/delayed-async-queue","owner":"pbojinov","description":"A queue for processing things asynchronously (like _gaq from Google Analytics)","archived":false,"fork":false,"pushed_at":"2016-03-02T23:41:32.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-02T03:57:42.220Z","etag":null,"topics":["async","async-actions","google-analytics","queue"],"latest_commit_sha":null,"homepage":"https://pbojinov.github.io/delayed-async-queue/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pbojinov.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,"zenodo":null}},"created_at":"2016-03-02T21:06:51.000Z","updated_at":"2017-03-09T01:09:12.000Z","dependencies_parsed_at":"2023-03-21T20:17:58.026Z","dependency_job_id":null,"html_url":"https://github.com/pbojinov/delayed-async-queue","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/pbojinov/delayed-async-queue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbojinov%2Fdelayed-async-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbojinov%2Fdelayed-async-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbojinov%2Fdelayed-async-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbojinov%2Fdelayed-async-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pbojinov","download_url":"https://codeload.github.com/pbojinov/delayed-async-queue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbojinov%2Fdelayed-async-queue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271242036,"owners_count":24724978,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["async","async-actions","google-analytics","queue"],"created_at":"2024-10-11T03:09:06.819Z","updated_at":"2025-08-20T00:04:52.120Z","avatar_url":"https://github.com/pbojinov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Delayed Async Queue\n\n\u003e This is an alpha work in progress. It's used in production at the moment but this is an attempt to make it its own stand-alone library. Use at your own risk...for now.\n\n## Getting Started\n\n```\nnpm install daq\n```\n\nThis is indented to be used in the browser, not on the server, since the nature of the problem it tries to solve is allow third party code to trigger things in your client-side app later, when it loads.\n\n## Examples\n\n``` javascript\n// [Third-Party Code]\n// 3rd party code (such as A/B testing tool) pushes stuff in the queue to be executed later when the page is loaded\n// Note: the window scope of the third-party script should match the window scope your app is executing in\n//       otherwise the queue (window._daq) will be empty or undefined.\nwindow._daq = window._daq || [];\n_daq.push([() =\u003e {\n  console.log('hi there queue, thanks for running me!');\n}]);\n\n// [Your App Code]\n// Run the queue in your app\nimport DelayedAsyncQueue from 'daq';\nconst queue = new DelayedAsyncQueue(queue = window._daq); // pass in the queue from above\nqueue.start();\n\n// ...\n// you'll see the following in console after a second or two\n// \u003e hi there queue, thanks for running me!\n\n// done processing everything? stop the queue\nqueue.stop();\n```\n\n## Notes\n\nThe current setup only supports executing anonymous functions at the moment. The next step is to allow named functions and namespaced functions, such as:\n\n```\n_daq.push(['someCoolFunction', 'do-something']); // test named function\n_daq.push(['App.mynamespacedfunction', 'some-something-else', 'more data']); // test namespaced function\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbojinov%2Fdelayed-async-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpbojinov%2Fdelayed-async-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbojinov%2Fdelayed-async-queue/lists"}