Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to work with asynchronous events? #9

Open
2 tasks done
SimonLab opened this issue Jan 21, 2020 · 0 comments
Open
2 tasks done

How to work with asynchronous events? #9

SimonLab opened this issue Jan 21, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request T1h

Comments

@SimonLab
Copy link
Member

SimonLab commented Jan 21, 2020

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...

  • Read https://dart.dev/codelabs/async-await and summarise how to manage asynchronous events
  • The keyword then is also sometimes used with asynchronous function, what is the difference with async/await and then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request T1h
Projects
None yet
Development

No branches or pull requests

1 participant