async_tools 0.1.0 copy "async_tools: ^0.1.0" to clipboard
async_tools: ^0.1.0 copied to clipboard

Useful data structures and tools for async/Future code

example/async_tools_example.dart

import 'package:async_tools/async_tools.dart';

Future<void> main() async {
  final waitSet = WaitSet();
  for (var n = 0; n < 10; n++) {
    waitSet.add(() async => Future.delayed(Duration(seconds: n), () {
          // ignore: avoid_print
          print('$n');
        }));
  }
  await waitSet();
}
0
likes
0
pub points
67%
popularity

Publisher

verified publisherveilid.com

Useful data structures and tools for async/Future code

Repository (GitLab)
View/report issues

Funding

Consider supporting this project:

veilid.org

License

unknown (LICENSE)

Dependencies

freezed_annotation

More

Packages that depend on async_tools