{"id":37019642,"url":"https://github.com/arez/arez-promise","last_synced_at":"2026-01-14T02:11:18.269Z","repository":{"id":57745558,"uuid":"127987688","full_name":"arez/arez-promise","owner":"arez","description":"Arez component that wraps a Promise and makes it observable","archived":true,"fork":false,"pushed_at":"2021-07-25T23:56:46.000Z","size":837,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-15T04:23:49.801Z","etag":null,"topics":["arez","arez-promise","gwt","java"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arez.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-04T01:08:04.000Z","updated_at":"2023-01-28T07:36:48.000Z","dependencies_parsed_at":"2022-09-05T02:51:14.397Z","dependency_job_id":null,"html_url":"https://github.com/arez/arez-promise","commit_stats":null,"previous_names":[],"tags_count":122,"template":false,"template_full_name":null,"purl":"pkg:github/arez/arez-promise","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arez%2Farez-promise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arez%2Farez-promise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arez%2Farez-promise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arez%2Farez-promise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arez","download_url":"https://codeload.github.com/arez/arez-promise/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arez%2Farez-promise/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["arez","arez-promise","gwt","java"],"created_at":"2026-01-14T02:11:17.662Z","updated_at":"2026-01-14T02:11:18.260Z","avatar_url":"https://github.com/arez.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arez-Promise\n\n[![Build Status](https://api.travis-ci.com/arez/arez-promise.svg?branch=master)](http://travis-ci.com/arez/arez-promise)\n[\u003cimg src=\"https://img.shields.io/maven-central/v/org.realityforge.arez.promise/arez-promise.svg?label=latest%20release\"/\u003e](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.realityforge.arez.promise%22)\n\nThis library provides an Arez browser component that wraps a Promise and exposes observable\nstate that tracks the state of the promise.\n\n## Quick Start\n\nThe simplest way to use component;\n\n* add the following dependencies into the build system. i.e.\n\n```xml\n\u003cdependency\u003e\n   \u003cgroupId\u003eorg.realityforge.arez.promise\u003c/groupId\u003e\n   \u003cartifactId\u003earez-promise\u003c/artifactId\u003e\n   \u003cversion\u003e0.122\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n* add the snippet `\u003cinherits name=\"arez.promise.ObservablePromise\"/\u003e` into the .gwt.xml file.\n\n* Use the `ObservablePromise` component. eg.\n\n```java\nimport com.google.gwt.core.client.EntryPoint;\nimport elemental2.dom.DomGlobal;\nimport elemental2.dom.Response;\nimport elemental2.promise.Promise;\nimport arez.Arez;\nimport arez.promise.ObservablePromise;\n\npublic class Example\n  implements EntryPoint\n{\n  public void onModuleLoad()\n  {\n    final Promise\u003cResponse\u003e promise = DomGlobal.fetch( \"https://example.com/\" );\n    final ObservablePromise\u003cResponse, Object\u003e observablePromise = ObservablePromise.create( promise );\n    Arez.context().autorun( () -\u003e {\n      final String message = \"Promise Status: \" + observablePromise.getState();\n      DomGlobal.console.log( message );\n    } );\n  }\n}\n ```\n\n# More Information\n\nFor more information about component, please see the [Website](https://arez.github.io/promise). For the\nsource code and project support please visit the [GitHub project](https://github.com/arez/arez-promise).\n\n# Contributing\n\nThe component was released as open source so others could benefit from the project. We are thankful for any\ncontributions from the community. A [Code of Conduct](CODE_OF_CONDUCT.md) has been put in place and\na [Contributing](CONTRIBUTING.md) document is under development.\n\n# License\n\nThe component is licensed under [Apache License, Version 2.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farez%2Farez-promise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farez%2Farez-promise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farez%2Farez-promise/lists"}