Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
async/await
Search
Eduardo Quagliato
February 21, 2017
Programming
82
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
async/await
A presentation about async/await focused on Node.js.
Eduardo Quagliato
February 21, 2017
More Decks by Eduardo Quagliato
See All by Eduardo Quagliato
nodejsCWB[1]
quagliato
0
40
nodejsCWB[0]
quagliato
0
31
CfCWB Workshop - MEAN
quagliato
0
100
Explosão Controlada
quagliato
1
310
Other Decks in Programming
See All in Programming
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
290
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Rails World 2026, Austin, Texas
marcoroth
0
140
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
1
1.2k
AI Agent時代のリアーキテクチャ戦略と実践
hokaccha
9
5.2k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
450
技術的負債を組織課題として解く-増えすぎたマイクロサービスとの戦い-
reimaru
1
2.6k
JRuby: Past, Present, and Future
headius
0
210
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
320
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
320
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
650
SREの越境 / SRE Collaboration
y0hgi
2
290
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
400
Featured
See All Featured
Are puppies a ranking factor?
jonoalderson
2
4k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
840
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
550
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
600
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
250
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
2k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
580
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
530
Scaling GitHub
holman
464
140k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.1k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
260
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]