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

Could use more convenient Promise #2

Open
ldaley opened this issue Sep 24, 2015 · 1 comment
Open

Could use more convenient Promise #2

ldaley opened this issue Sep 24, 2015 · 1 comment

Comments

@ldaley
Copy link

ldaley commented Sep 24, 2015

No description provided.

@ldaley
Copy link
Author

ldaley commented Sep 24, 2015

Hi,

Great stuff. Just having a dig around. I just wanted to point out that we do some Groovy magic that allows you to do this…

reader.getAggregate(aggregateId).promise().map { json(it.first()) }
promise(reader.getAggregate(aggregateId)).map { json(it.first()) }

I took this from here: https://github.com/aaronzirbes/rp-event-store/blob/master/src/main/groovy/org/zirbes/eventsource/handlers/AggregateReaderHandler.groovy#L35

This is briefly explained at http://ratpack.io/manual/current/api/ratpack/rx/RxRatpack.html

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