Skip to content
RED SAG Skills
mediumStudy question · answer published in Flutter interview questions, so no pointscross-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