April 2017
— Using Promise.resolve vs new Promise cause entirely different control flow btw
Promise.resolve
new Promise
Any then methods will be invoked right away vs waiting for the promise function to throw resolve itself
then
resolve
— Can't use Promise.resolve everywhere though
— Why's that?
— So why do you want real classes?
— Wrapping callbacks or eventemitters
— I dont
— I want good class syntax
— Why not?
— Class syntax != real class
— I want actual good classes
— Try it