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
180
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
生成 AI の基礎 〜 サンプル実装で学ぶ基本原理
enakai00
7
4.4k
システム思考で問題に対処する
yussak
0
280
Master Dataグループ紹介資料
sansan33
PRO
1
4.8k
LanceDB入門
mocobeta
7
500
まちスペース®とデジタルツインと「まちづくり」
hiro_ogi
0
120
老害フォレンジッカーはAI羊の夢を見るか?
tadmaddad
0
330
FDEの心得
noriakioji
4
5.8k
Agent 時代の Kaggle 展望 / kaggle-in-the-agentic-era
upura
1
730
オートロックマンションなのに、各部屋は施錠なし!? 攻撃者が組織内ネットワークで大暴れする理由 / The Front Door Is Locked, but the Rooms Are Wide Open: Why Attackers Move Freely Inside Enterprise Networks
nttcom
1
4.8k
Goでデータパイプラインを作ろう
sansantech
PRO
1
450
Software Supply Chain Attackからクラウド環境を守るためにできること
lhazy
2
260
事業価値と Engineering 2026年度版
recruitengineers
PRO
49
23k
Featured
See All Featured
Become a Pro
speakerdeck
PRO
31
6.2k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.2k
エンジニアに許された特別な時間の終わり
watany
108
250k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
First, design no harm
axbom
PRO
2
1.2k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
540
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
710
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
360
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Odyssey Design
rkendrick25
PRO
2
750
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....