-
Notifications
You must be signed in to change notification settings - Fork 136
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
Chapter 6: Introduce future at the repository level #40
Comments
That's definitely an option - no design is ever complete and there are always alternatives. In fact instead of committing to |
At one perspective people would say returning generic Somehow I still prefer using NB: Those beginner readers remind me of myself several months ago. Thanks to your book! |
Using |
The root cause why the operation need to return
Future
is because repository. Rather than eagerly callingFuture.apply
in service level, why can't we introduceFuture
as the return type from repository, and compose it accordingly in service level?Let's say our repository is non-blocking, we will call this already well-shaped repository in another thread, which is unnecessary.
The text was updated successfully, but these errors were encountered: