Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
async/await
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Eduardo Quagliato
February 21, 2017
Programming
0
75
async/await
A presentation about async/await focused on Node.js.
Eduardo Quagliato
February 21, 2017
Tweet
Share
More Decks by Eduardo Quagliato
See All by Eduardo Quagliato
nodejsCWB[1]
quagliato
0
35
nodejsCWB[0]
quagliato
0
24
CfCWB Workshop - MEAN
quagliato
0
90
Explosão Controlada
quagliato
1
310
Other Decks in Programming
See All in Programming
インターン生でもAuth0で認証基盤刷新が出来るのか
taku271
0
190
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
200
AIエージェントのキホンから学ぶ「エージェンティックコーディング」実践入門
masahiro_nishimi
5
430
AI Agent Tool のためのバックエンドアーキテクチャを考える #encraft
izumin5210
6
1.8k
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
380
CSC307 Lecture 09
javiergs
PRO
1
830
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
CSC307 Lecture 08
javiergs
PRO
0
670
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
560
Lambda のコードストレージ容量に気をつけましょう
tattwan718
0
120
2026年 エンジニアリング自己学習法
yumechi
0
130
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
21
7.2k
Featured
See All Featured
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
580
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
140
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
380
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
140
Side Projects
sachag
455
43k
Test your architecture with Archunit
thirion
1
2.1k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
Color Theory Basics | Prateek | Gurzu
gurzu
0
200
Paper Plane (Part 1)
katiecoart
PRO
0
4.1k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
160
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Transcript
async/await
WTF?
async/await são funções especificadas a partir do ES8/ECMAScript2017 para processamento
assíncrono.
O que é ES8/EMCAScript2017???
ECMA International = European Computer Manufactorers Association
ECMAScript é uma linguagem de script especificada pela ECMA baseada
na especificação ECMA-262 http://www.ecma-international.org/ecma-262/6.0/
ECMAScript foi baseada em JavaScript mas hoje JavaScript acompanha a
especificação da ECMA
Então, ES8/ECMAScript2017 é a 8ª especificação da ECMAScript, a ser
lançada em 2017
ES8/ECMAScript2017 ainda em implementação por navegadores motores, ambientes de execução
Voltando pro async/await...
2 novas palavras reservadas:
async
await
Mas antes...
Promise
Exemplo roubado de https://braziljs.org/blog/promises-no-javascript/
async • Como o próprio nome já diz, é uma
função assíncrona • Deve obrigatoriamente retornar uma Promise
await • “wait” = “esperar” • await só pode esperar
função assíncrona (async)
E ajudam a evitar isso...
… e isso.
Quer mais? • http://bit.ly/AsyncAwaitLink1 • http://bit.ly/AsyncAwaitLink2 • http://bit.ly/AsyncAwaitLink3 • http://bit.ly/AsyncAwaitLink4
Muito obrigado! dúvidas?
[email protected]