Basic Concept of Asynchronous programming
Concept of Asynchronous Code
A Simple Synchronous Code :
Dart is Single Threaded Note: There is a concept called "isolates" in dart which you can use to emulate multithreading
Couple of asynchronous processes :
Event Loop
Futures & Callbacks
"Callbacks" are special types of functions which gets executed when the asynchronous process is done Note: Callbacks are not only used in asynchronous process , they are used in functional programming too .

All future start with an uncompleted state . After the asynchronous process is done it either resolves into "Completed with Data" or "Completed with Error"

Last updated
Was this helpful?