We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In addition to the #488 which add a global executor to Deferred API a local (per call) executor is will be available too:
Deferred API
{ // global/default executor executor(Executors.new...()); // cached executor executor("cached", Executors.new...()); get("/global", promise(deferred -> { deferred.resolve("OK"); })); get("/local", promise("cached", deferred -> { deferred.resolve("OK"); })); }
The Deferred class now takes a String which works as an executor reference:
Deferred
String
new Deferred("cached", ...);
The executor method call is a shortcut for:
executor
binder.bind(Key.get(Executor.class, "cached")).toInstance(executor)
The text was updated successfully, but these errors were encountered:
4828f3f
No branches or pull requests
In addition to the #488 which add a global executor to
Deferred API
a local (per call) executor is will be available too:The
Deferred
class now takes aString
which works as an executor reference:The
executor
method call is a shortcut for:The text was updated successfully, but these errors were encountered: