jakobmattsson / z-core

Utility library for JavaScript promises
MIT License
42 stars 0 forks source link

Wrapping the returned promises #4

Open jakobmattsson opened 10 years ago

jakobmattsson commented 10 years ago

Would it maybe be useful to add the possibility to wrap the promises returned from Z with another type of promises? Mixins only allow methods to be added/replaced, but the inner workings of the promises (like long stack traces etc) cannot be altered.

jakobmattsson commented 10 years ago

Create a case for this in the form of a test.

jakobmattsson commented 10 years ago

Using this, "complete resolving" could be implemented as such a wrapping (and hence optional) instead of being part of core.