async/Task.resolve() does not return Task #153

Closed
kitsonk opened this Issue Apr 25, 2016 · 0 comments

Projects

None yet

1 participant

@kitsonk
Member
kitsonk commented Apr 25, 2016

Task.resolve() does not return a Task() as contracted. Instead it returns a Promise.

Because it is simply calling the super static method, which returns a Promise. It probably should do what the PromiseShim does instead, which is return a new this which is resolved with the value passed.

@kitsonk kitsonk added the bug label Apr 25, 2016
@kitsonk kitsonk added this to the 2016.04 milestone Apr 25, 2016
@kitsonk kitsonk added a commit that referenced this issue Apr 25, 2016
@kitsonk kitsonk Task.resolve() returns a Task
Fixes #153
9d39c1d
@kitsonk kitsonk self-assigned this Apr 25, 2016
@kitsonk kitsonk closed this in #154 Apr 26, 2016
@kitsonk kitsonk added a commit that referenced this issue Apr 26, 2016
@kitsonk kitsonk Task.resolve() returns a Task
Fixes #153
1a1f865
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment