-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feature request: add promise.with #5
Comments
Since this is a port of when.js the method in question should be this: |
Thanks for the suggestion @naugtur, I haven't looked at when.js in quite a while. Do either of you want to take a stab at adding |
I'd be willing to try and implement this, but I'm not sure how to handle the fact that Java doesn't seem to have anything analogous to Function.apply() in JS My first attempt to work around this involves adding methods accepting a
in simplest case you'd bind the context using this method:
|
I'd like to be able to pass some context object (e.g. a pre-initializer logger) along the promise chain.
Bluebird has a bind() method that does that.
I think implementing this would be rather simple, the question is how to make it work with Java syntax.
Closure-scope is not adequate here, as I want the same logger to be shared end-to-end and not only in the steps defined in current method.
The text was updated successfully, but these errors were encountered: