// Copyright (c) 2026, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. import 'dart:developer'; import 'common/test_helper.dart'; Future asyncFunction() async { await Future.delayed(const Duration(milliseconds: 1)); return 123; } Stream asyncGenerator() async* { await Future.delayed(const Duration(milliseconds: 1)); yield 456; } Iterable syncGenerator() sync* { yield 789; } Future wrapperFunction() async { print(await asyncFunction()); await for (final value in asyncGenerator()) { print(value); } for (final value in syncGenerator()) { print(value); } } Future testFunction() async { debugger(); await wrapperFunction(); debugger(); } Future main([List args = const []]) { return startServiceTest(testeeConcurrent: testFunction); }