Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Both parts are incorrect, the native way is `Promise.resolve('done')`. As for .call - native promises let you subclass them. If you have a promise enabled environment you can use generators anyway. I used Q's syntax because that's what OP used.

Regardless - nice comment.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: