Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
inglor
on June 25, 2015
|
parent
|
context
|
favorite
| on:
Pseudosynchronous JavaScript
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:
Regardless - nice comment.