Skip to content
RED SAGSkills
medium10 pts · first answer countscross-platform-mobiledartdart-async

What an async* function returns

What does this function return?

Stream<int> countdown() async* {
  for (var i = 1; i <= 3; i++) {
    await Future.delayed(const Duration(seconds: 1));
    yield i;
  }
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions