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
A Evolução do JavaScript Assíncrono
Search
Ruan Martinelli
December 02, 2017
Technology
0
170
A Evolução do JavaScript Assíncrono
Ruan Martinelli
December 02, 2017
Tweet
Share
More Decks by Ruan Martinelli
See All by Ruan Martinelli
Mutation Testing - Backend Meetup @ STRV
ruanmartinelli
2
190
Terra: A solution for Developing WSN Applications
ruanmartinelli
0
54
Other Decks in Technology
See All in Technology
AI推進者の視点で見る、Bill OneのAI活用の今
sansantech
PRO
1
180
一番人に近いコードレビューア CodeRabbit
kinopeee
0
110
入社1ヶ月でデータパイプライン講座を作った話
waiwai2111
1
110
エンジニアとして長く走るために気づいた2つのこと_大賀愛一郎
nanaism
1
260
【northernforce#54】SalesforceにおけるAgentforceの位置づけ・事例紹介
yutosatou_kit
0
130
GitHub Copilot CLI 現状確認会議
torumakabe
12
4.9k
Databricks Free Edition講座 データサイエンス編
taka_aki
0
230
AI開発の落とし穴 〜馬には乗ってみよAIには添うてみよ〜
sansantech
PRO
9
4.9k
Mosaic AI Gatewayでコーディングエージェントを配るための運用Tips / JEDAI 2026 新春 Meetup! AIコーディング特集
genda
0
120
Vitest Highlights in Angular
rainerhahnekamp
0
110
Tebiki Engineering Team Deck
tebiki
0
23k
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
41k
Featured
See All Featured
Music & Morning Musume
bryan
47
7k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
2.9k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
0
98
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
47
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
630
Measuring & Analyzing Core Web Vitals
bluesmoon
9
740
GraphQLとの向き合い方2022年版
quramy
50
14k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
150
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
Docker and Python
trallard
47
3.7k
So, you think you're a good person
axbom
PRO
2
1.9k
Transcript
A EVOLUÇÃO DO. JAVASCRIPT ASSÍNCRONO. RUAN MARTINELLI . ruanmartinelli.com .
@ruanmartinelli .
None
“ANY APPLICATION THAT CAN BE WRITTEN IN JAVASCRIPT, WILL EVENTUALLY
BE WRITTEN IN JAVASCRIPT.” -JEFF ATWOOD, STACK OVERFLOW
# OF PULL REQUESTS octoverse.github.com
None
ECMAScript
None
None
None
1 2 3 4 1 2 3
1 2 3 4 1 2 3 4 ✔ 1
2 3 ✔ 1 2 3
1 2 3 4 1 1 2 2 3 ✔
3 4 ✔ 1 2 3
CALLBACK.
CALLBACK.
CALLBACK.
CALLBACK.
CALLBACK.
CALLBACK.
CALLBACK.
}); }); }); }); }); }); }); }); CALLBACK.
PROMISES.
None
None
None
getLivro() .then() .catch()
PROMISES.
PROMISES.
PROMISES.
PROMISES.
PROMISES.
PROMISES.
PROMISES.
None
ASYNC FUNCTIONS (async/await).
CALLBACK.
PROMISES.
ASYNC FUNCTIONS.
ASYNC FUNCTIONS.
ASYNC FUNCTIONS.
ASYNC FUNCTIONS.
- Sempre retornam uma Promise; ASYNC FUNCTIONS.
??
// true
ASYNC FUNCTIONS. - Sempre retornam uma Promise;
ASYNC FUNCTIONS. - Sempre retornam uma Promise; - Permitem o
uso do await;
None
- Sempre retornam uma Promise; - Permitem o uso do
await; ASYNC FUNCTIONS.
- Sempre retornam uma Promise; - Permitem o uso do
await; - Uso de constructs nativos; ASYNC FUNCTIONS.
None
None
- Sempre retornam uma Promise; - Permitem o uso do
await; - Uso de constructs nativos; ASYNC FUNCTIONS.
- Sempre retornam uma Promise; - Permitem o uso do
await; - Uso de constructs nativos; - Tratamento de erros com try/catch. ASYNC FUNCTIONS.
None
None
None
None
None
- Observables, RxJS; - Generators; - Promise.prototype.finally; - Bluebird; -
Promise Constructor; - Loops em Async Functions. INDO ALÉM....