-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
adapt for amphp promises #100
Conversation
I think this type of support would be better in its own repo. I don't like the idea of introducing an API that relies on a library that may or may not be available. |
Just in case: I am using Should I change that ? |
Yes please. React is this organizations namespace. |
Ok, no problem I will change that |
@cboden While a separate package could also make sense, I think including something like that into another package like this one directly can make sense for improved discoverability. The type declaration could also be dropped in the future to allow for other promise implementations to be easily adapted, too. |
I think it makes perfect sense to provide that via a separate package. If Amp wants to be consumable by promise libs, it can provide a |
Thanks for the PR @umbri, I think this sparked a very good discussion and lead the right thing: Your adapter is much appreciated and I suppose something that people that are interested in using amphp with ReactPHP would be interested in 👍 Other than that, I agree with @cboden and @jsor in that it doesn't make much sense to provide adapters for all kinds of (niche) third party projects here, in particular given that we already support "foreign promises" (anything with a standard @kelunik As much as I understand your effort, I don't think this project should be concerned with "improved discoverability" of (niche) third party projects that this project has no involvement whatsoever with. I believe this has been answered, so I'm closing this for now. Please come back with more details if this persists and we can reopen this 👍 Again, thanks for the discussion everybody and thanks @umbri for bringing this idea to the table 👍 |
same as in https://github.com/amphp/amp/blob/master/lib/functions.php#L226 for
\Amp\Promise