This question already has an answer here:
- Async/Await feature in Dart 1.8 1 answer
It is possible write similar code in Dart language?
int i;
try {
i = await getResultAsync();
} catch(exception) {
// Do something
}
This question already has an answer here:
It is possible write similar code in Dart language?
int i;
try {
i = await getResultAsync();
} catch(exception) {
// Do something
}
Basic support is already available.
See https://www.dartlang.org/articles/await-async/ for more details.
Not for now. See issue Support for "await" in Dart.