Upgrade to Pro — share decks privately, control downloads, hide ads and more …

A Evolução do JavaScript Assíncrono

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →

A Evolução do JavaScript Assíncrono

Ruan Martinelli

December 02, 2017

Transcript

58 slides
  1. “ANY APPLICATION THAT CAN BE WRITTEN IN JAVASCRIPT, WILL EVENTUALLY

    BE WRITTEN IN JAVASCRIPT.” -JEFF ATWOOD, STACK OVERFLOW
  2. 1 2 3 4 1 2 3 4 ✔ 1

    2 3 ✔ 1 2 3
  3. 1 2 3 4 1 1 2 2 3 ✔

    3 4 ✔ 1 2 3
  4. ??

  5. - Sempre retornam uma Promise; - Permitem o uso do

    await; - Uso de constructs nativos; ASYNC FUNCTIONS.
  6. - Sempre retornam uma Promise; - Permitem o uso do

    await; - Uso de constructs nativos; ASYNC FUNCTIONS.
  7. - Sempre retornam uma Promise; - Permitem o uso do

    await; - Uso de constructs nativos; - Tratamento de erros com try/catch. ASYNC FUNCTIONS.
  8. - Observables, RxJS; - Generators; - Promise.prototype.finally; - Bluebird; -

    Promise Constructor; - Loops em Async Functions. INDO ALÉM....

More Decks by Ruan Martinelli

Other Decks in Technology