Basic Concept of Asynchronous programming
Last updated
Last updated
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 :
"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"