{"id":18898641,"url":"https://github.com/craryprimitiveman/saq","last_synced_at":"2026-03-01T12:30:22.166Z","repository":{"id":15473192,"uuid":"18206629","full_name":"CraryPrimitiveMan/saq","owner":"CraryPrimitiveMan","description":"SAQ是指Small Asynchronous Queue，即短小精悍的异步调用库。","archived":false,"fork":false,"pushed_at":"2014-03-28T09:22:56.000Z","size":128,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T08:47:41.211Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/CraryPrimitiveMan.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}},"created_at":"2014-03-28T09:09:24.000Z","updated_at":"2020-05-25T20:12:50.000Z","dependencies_parsed_at":"2022-07-13T22:50:33.003Z","dependency_job_id":null,"html_url":"https://github.com/CraryPrimitiveMan/saq","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CraryPrimitiveMan%2Fsaq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CraryPrimitiveMan%2Fsaq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CraryPrimitiveMan%2Fsaq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CraryPrimitiveMan%2Fsaq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CraryPrimitiveMan","download_url":"https://codeload.github.com/CraryPrimitiveMan/saq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239879312,"owners_count":19712176,"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","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":[],"created_at":"2024-11-08T08:43:24.272Z","updated_at":"2026-03-01T12:30:22.070Z","avatar_url":"https://github.com/CraryPrimitiveMan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"SAQ\n===\n\nSAQ是指Small Asynchronous Queue，即短小精悍的异步调用库。\n\n\u003cpre\u003e\u003ccode\u003e\nvar obj = {\n    value: null\n};\n\nsaq([\n    function(callback) {\n        var self = this;\n        setTimeout(function() {\n            self.value = 10;\n            callback(20);\n        }, 200);\n    },\n    function(callback, add) {  \n        console.log(this.value + add);  \n        callback();\n    },\n    function(callback) {\n        this.value += 10;\n        console.log(obj.value);\n        setTimeout(function() {\n            callback();\n        }, 200);\n    },\n    function() {\n      console.log(\"end\");\n    }\n], obj);\n// 运行结果  30 20 end\n\n\u003c/code\u003e\u003c/pre\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraryprimitiveman%2Fsaq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcraryprimitiveman%2Fsaq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraryprimitiveman%2Fsaq/lists"}