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
Eduardo Quagliato
February 21, 2017
Programming
0
74
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
34
nodejsCWB[0]
quagliato
0
24
CfCWB Workshop - MEAN
quagliato
0
89
Explosão Controlada
quagliato
1
310
Other Decks in Programming
See All in Programming
CSC305 Lecture 03
javiergs
PRO
0
240
非同期jobをtransaction内で 呼ぶなよ!絶対に呼ぶなよ!
alstrocrack
0
900
明日から始めるリファクタリング
ryounasso
0
140
「ちょっと古いから」って避けてた技術書、今だからこそ読もう
mottyzzz
10
6.7k
iOSエンジニア向けの英語学習アプリを作る!
yukawashouhei
0
200
2分台で1500examples完走!爆速CIを支える環境構築術 - Kaigi on Rails 2025
falcon8823
3
3.6k
詳しくない分野でのVibe Codingで困ったことと学び/vibe-coding-in-unfamiliar-area
shibayu36
3
4.9k
GraphQL×Railsアプリのデータベース負荷分散 - 月間3,000万人利用サービスを無停止で
koxya
1
1.3k
monorepo の Go テストをはやくした〜い!~最小の依存解決への道のり~ / faster-testing-of-monorepos
convto
2
490
技術的負債の正体を知って向き合う / Facing Technical Debt
irof
0
170
デミカツ切り抜きで面倒くさいことはPythonにやらせよう
aokswork3
0
230
Claude CodeによるAI駆動開発の実践 〜そこから見えてきたこれからのプログラミング〜
iriikeita
0
210
Featured
See All Featured
BBQ
matthewcrist
89
9.8k
Code Reviewing Like a Champion
maltzj
526
40k
How to train your dragon (web standard)
notwaldorf
97
6.3k
Music & Morning Musume
bryan
46
6.8k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.7k
Unsuck your backbone
ammeep
671
58k
What's in a price? How to price your products and services
michaelherold
246
12k
Making Projects Easy
brettharned
120
6.4k
How to Ace a Technical Interview
jacobian
280
24k
Producing Creativity
orderedlist
PRO
347
40k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
Building a Scalable Design System with Sketch
lauravandoore
463
33k
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]