Are Futures in Dart threads?by@matanlurey
7,315 reads
7,315 reads

Are Futures in Dart threads?

by Matan Lurey2mApril 26th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Well, <em>no</em>. Dart has a <a href="https://webdev.dartlang.org/articles/performance/event-loop" target="_blank">single thread, or event-loop</a>, of execution. However, commonly you’ll see a code using <em>Future</em> have a comment something to the effect of <em>“// Avoid race conditions: Check for&nbsp;…”</em>. What does that mean?

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Are Futures in Dart threads?
Matan Lurey HackerNoon profile picture
Matan Lurey

Matan Lurey

@matanlurey

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite