If you are interested in native vs. polyfill performance, it is a bit of a recurring theme in lodash and there's some good articles, podcasts, and videos you might be interested in at https://github.com/lodash/lodash/wiki/Resources
~Ryan On Fri, 26 Jun 2015 at 11:22 <a...@vidao.com> wrote: > Thanks Ryan! > > That is a very elegant timeout implementation, just add .timeout(ms, msg). > And has many other great features, such as cancellation and delays. > > I assumed that native implementation will always be faster & safer to use > long-term, thought that 3rd party libs were just a placeholder while native > APIs are in development. It appears that I was I was very wrong about speed > at least: > > > http://programmers.stackexchange.com/questions/278778/why-are-native-es6-promises-slower-and-more-memory-intensive-than-bluebird > > And seeing how I am implementing features that bluebird already has, the > solution seems pretty clear - will switch to bluebird. > > Alen > > On Thursday, June 25, 2015 at 5:55:24 PM UTC-7, Ryan Graham wrote: > >> Bluebird appears to have timeouts: >> >> >> https://github.com/petkaantonov/bluebird/blob/master/API.md#timeoutint-ms--string-message---promise >> >> ~Ryan >> > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. To post to this group, send email to nodejs@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAGjmZGzGHxxdAvGQdtBR1X_%2B7UAQkjJGMzapGF5bPGrVRnMe-Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.