{"id":15642130,"url":"https://github.com/jaredly/reason_async","last_synced_at":"2025-04-30T09:45:56.071Z","repository":{"id":66952864,"uuid":"101116954","full_name":"jaredly/reason_async","owner":"jaredly","description":null,"archived":false,"fork":false,"pushed_at":"2018-01-04T16:35:14.000Z","size":2425,"stargazers_count":65,"open_issues_count":3,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-09T20:53:41.443Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","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/jaredly.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":"2017-08-22T23:38:29.000Z","updated_at":"2020-12-23T10:39:38.000Z","dependencies_parsed_at":"2023-06-19T11:17:48.371Z","dependency_job_id":null,"html_url":"https://github.com/jaredly/reason_async","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Freason_async","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Freason_async/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Freason_async/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Freason_async/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredly","download_url":"https://codeload.github.com/jaredly/reason_async/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234545181,"owners_count":18850165,"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-10-03T11:54:45.955Z","updated_at":"2025-01-18T17:55:03.734Z","avatar_url":"https://github.com/jaredly.png","language":"OCaml","funding_links":[],"categories":["OCaml"],"sub_categories":[],"readme":"# Async/await for Reason/OCaml!\n\n[Clone the example repo](https://github.com/jaredly/reason_async_example) to get started quickly.\n\n## Example usage\n\nWith promises\n\n```\nlet doSomething = () =\u003e {\n  let module Let_syntax = Reason_async.Promise;\n  [%await let x = somethingPromisy\n  and y = anotherPromise];\n  /* ... */\n  [%awaitWrap let z = getFileContents()];\n  x + y + z\n};\n```\n\n## Installation / setup\n\nNOTE: You currently need to be using `bsb-native` in your project in order for weird bugs not to happen on recompilation. You'll want `\"bs-platform\": \"git+https://github.com/bsansouci/bsb-native\"` in your package.json.\n\n- `yarn add reason_async` (or npm)\n- add `reason_async` to your bs-dependencies in `bsconfig.json`\n- add `reason_async` to your `ppx-flags` in `bsconfig.json`\n\nExample `bsconfig.json`:\n\n```json\n{\n  \"name\": \"myapp\",\n  \"refmt\": 3,\n  \"sources\": \"./src\",\n  \"bs-dependencies\": [\"reason_async\"],\n  \"ppx-flags\": [\"reason_async\"]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredly%2Freason_async","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredly%2Freason_async","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredly%2Freason_async/lists"}