Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Do to $q and Q what is done to jqLite and jQuery #8935

Closed
kentcdodds opened this issue Sep 4, 2014 · 3 comments
Closed

Do to $q and Q what is done to jqLite and jQuery #8935

kentcdodds opened this issue Sep 4, 2014 · 3 comments

Comments

@kentcdodds
Copy link

I noticed in an app I'm involved with that we're loading the Q library. It got me wondering if angular's $q service could use Q if it's on the page like jqLite uses jQuery if it's on the page. I believe this would be very useful. Would it be reasonably possible to implement?

@caitp
Copy link
Contributor

caitp commented Sep 4, 2014

we've talked about this (and it is somewhat possible with Bluebird, because you can change the nextTick scheduler it uses) --- but we don't really have a good way to do this, especially now that there are 2 promise implementations in angular which have to use different schedulers.

It's non-trivial, but it is technically doable with Bluebird at least, and it could work with Q if there's a way to change the scheduler

@pkozlowski-opensource
Copy link
Member

I guess this is more or less the same discussion as in #6697 so probably should centralise it in there, if we see it actionable at all....

@kentcdodds
Copy link
Author

there are 2 promise implementations in angular

😦

I'll close this issue in favor of #6697. Thanks @caitp and @pkozlowski-opensource

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants