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
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
MUSUBIXとは
nahisaho
0
130
今から始めるClaude Code超入門
448jp
8
8.6k
CSC307 Lecture 08
javiergs
PRO
0
670
CSC307 Lecture 07
javiergs
PRO
0
550
CSC307 Lecture 02
javiergs
PRO
1
780
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
21
7.1k
Package Management Learnings from Homebrew
mikemcquaid
0
220
MDN Web Docs に日本語翻訳でコントリビュート
ohmori_yusuke
0
650
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
690
「ブロックテーマでは再現できない」は本当か?
inc2734
0
960
AtCoder Conference 2025
shindannin
0
1.1k
Featured
See All Featured
Leo the Paperboy
mayatellez
4
1.4k
Amusing Abliteration
ianozsvald
0
99
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
64
Statistics for Hackers
jakevdp
799
230k
Raft: Consensus for Rubyists
vanstee
141
7.3k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
160
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
49
Context Engineering - Making Every Token Count
addyosmani
9
650
Believing is Seeing
oripsolob
1
54
Building AI with AI
inesmontani
PRO
1
690
For a Future-Friendly Web
brad_frost
182
10k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
930
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]