{"id":19094680,"url":"https://github.com/risto-stevcev/cljsjs-async","last_synced_at":"2025-06-12T18:32:37.325Z","repository":{"id":66361936,"uuid":"58781288","full_name":"Risto-Stevcev/cljsjs-async","owner":"Risto-Stevcev","description":"CLJSJS package for the async library","archived":false,"fork":false,"pushed_at":"2016-07-18T21:45:36.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-22T08:27:01.127Z","etag":null,"topics":["async","clojurescript"],"latest_commit_sha":null,"homepage":"https://clojars.org/cljsjs/async","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Risto-Stevcev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-05-14T00:21:44.000Z","updated_at":"2017-08-07T09:51:09.000Z","dependencies_parsed_at":"2023-02-21T18:15:21.358Z","dependency_job_id":null,"html_url":"https://github.com/Risto-Stevcev/cljsjs-async","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Risto-Stevcev/cljsjs-async","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Risto-Stevcev%2Fcljsjs-async","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Risto-Stevcev%2Fcljsjs-async/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Risto-Stevcev%2Fcljsjs-async/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Risto-Stevcev%2Fcljsjs-async/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Risto-Stevcev","download_url":"https://codeload.github.com/Risto-Stevcev/cljsjs-async/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Risto-Stevcev%2Fcljsjs-async/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259519256,"owners_count":22870327,"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":["async","clojurescript"],"created_at":"2024-11-09T03:30:56.775Z","updated_at":"2025-06-12T18:32:37.238Z","avatar_url":"https://github.com/Risto-Stevcev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cljsjs/async\n\n[![Clojars](https://img.shields.io/clojars/v/cljsjs/async.svg?maxAge=2592000)](https://clojars.org/cljsjs/async)\n\nHigher-order functions and common patterns for asynchronous code.\n\nAfter adding the dependency to your project you can require the packaged library like so:\n\n```clojure\n(ns application.core\n  (:require cljsjs.async))\n```\n\n## Examples\n\n#### async.parallel\n\n```clojure\n(def myatom (atom []))\n\n(js/async.parallel\n  (clj-\u003ejs [(fn [callback]\n              (js/setTimeout \n                (fn [] \n                  (swap! myatom conj \"one\")\n                  (callback nil \"one\")) 200))\n            (fn [callback]\n              (js/setTimeout \n                (fn [] \n                  (swap! myatom conj \"two\")\n                  (callback nil \"two\")) 100))])\n  (fn [error response]\n    (println response) ; #js [one two]\n    (println @myatom)  ; [two one]\n    ))\n```\n\n\n#### async.series\n\n```clojure\n(def myatom (atom []))\n\n(js/async.series\n  (clj-\u003ejs [(fn [callback]\n              (js/setTimeout \n                (fn [] \n                  (swap! myatom conj \"one\")\n                  (callback nil \"one\")) 200))\n            (fn [callback]\n              (js/setTimeout \n                (fn [] \n                  (swap! myatom conj \"two\")\n                  (callback nil \"two\")) 100))])\n  (fn [error response]\n    (println response) ; #js [one two]\n    (println @myatom)  ; [one two]\n    ))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fristo-stevcev%2Fcljsjs-async","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fristo-stevcev%2Fcljsjs-async","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fristo-stevcev%2Fcljsjs-async/lists"}