Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reakt 3 Simplify Promise and Callback. #54

Open
RichardHightower opened this issue Sep 9, 2016 · 0 comments
Open

Reakt 3 Simplify Promise and Callback. #54

RichardHightower opened this issue Sep 9, 2016 · 0 comments

Comments

@RichardHightower
Copy link
Member

We added a CallbackHandle and a PromiseHandle that simplifies the interface of Promise and Callback. (Checked in and it works.) Promises has a deferCall method that returns a PromiseHandle and is given a Consumer<CallbackHandle>. The PromiseHandle only has then, catchError…. The CallbackHandle only has resolve, reject. In version 3 of Reakt, PromiseHandle and CallbackHandle will be Promise and Callback and what is now Promise and Callback will be SPI classes probably called PromiseHandler and CallbackHandler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant