Open SimonLab opened 4 years ago
We can use async, await keywords and the class Future to manage asynchronous operation. For example when retrieving data from an API the returned values might take a bit of time depending on the API server, network status...
async
await
Future
then
async/await
We can use
async
,await
keywords and the classFuture
to manage asynchronous operation. For example when retrieving data from an API the returned values might take a bit of time depending on the API server, network status...then
is also sometimes used with asynchronous function, what is the difference withasync/await
andthen