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
A Evolução do JavaScript Assíncrono
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Ruan Martinelli
December 02, 2017
Technology
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
A Evolução do JavaScript Assíncrono
Ruan Martinelli
December 02, 2017
More Decks by Ruan Martinelli
See All by Ruan Martinelli
Mutation Testing - Backend Meetup @ STRV
ruanmartinelli
2
200
Terra: A solution for Developing WSN Applications
ruanmartinelli
0
62
Other Decks in Technology
See All in Technology
Claude Code本って、 読む必要あるの?
oikon48
2
390
リージョンの壁を越える、 ちょっと変わったAWSサービスの話
falken
PRO
1
300
「図書館」という名前のままでいいのか -Code4Lib JAPANカンファレンス2026 アンカンファレンス報告- / Code4Lib JAPAN Conference 2026: Unconference Report
ykiyota
0
160
目の前の楽しいが人生を変える - コミュニティの螺旋の歩き方と楽しむコツ / change your life
soudai
PRO
4
410
20260912_スクフェス三河
kgnkhkr
0
290
DEFCON_CHV_CTF_Write-up.pdf
bata_24
0
140
20260906 「AWS運用入門」著者が教える、運用業務への生成AI活用入門
masaruogura
0
260
Reactの設計論
uhyo
14
8k
研究開発部の紹介 / Sansan R&D Profile
sansan33
PRO
4
25k
薬剤師(ドメインエキスパート)と一緒に育てる薬局向けAIアシスタント
kakehashi
PRO
2
150
アリアドネの糸と、20年ごとの建て替え ── 長尾真『電子図書館』を、伊勢で読み直す / Rereading Makoto Nagao’s "Electronic Library" in Ise
ykiyota
0
150
OpenTelemetryのメトリクスをCloudWatchに送ってPromQLで見てみた
ota1022
0
120
Featured
See All Featured
WCS-LA-2024
lcolladotor
0
820
Discover your Explorer Soul
emna__ayadi
2
1.3k
Balancing Empowerment & Direction
lara
6
1.3k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
490
Technical Leadership for Architectural Decision Making
baasie
3
560
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
250
Context Engineering - Making Every Token Count
addyosmani
9
1.1k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
690
From π to Pie charts
rasagy
0
360
Being A Developer After 40
akosma
91
590k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
Visualization
eitanlees
152
17k
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....