z-core icon indicating copy to clipboard operation
z-core copied to clipboard

Wrapping the returned promises

Open jakobmattsson opened this issue 11 years ago • 2 comments

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 avatar Feb 22 '14 13:02 jakobmattsson

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

jakobmattsson avatar Feb 22 '14 13:02 jakobmattsson

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

jakobmattsson avatar Feb 22 '14 13:02 jakobmattsson