async_tools 0.1.3 copy "async_tools: ^0.1.3" to clipboard
async_tools: ^0.1.3 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<void>();
  for (var n = 0; n < 10; n++) {
    waitSet.add(() async => Future.delayed(Duration(seconds: n), () {
          // ignore: avoid_print
          print('$n');
        }));
  }
  await waitSet();
}
0
likes
140
pub points
67%
popularity

Publisher

verified publisherveilid.com

Useful data structures and tools for async/Future code

Repository (GitLab)
View/report issues

Documentation

API reference

Funding

Consider supporting this project:

veilid.org

License

MPL-2.0 (LICENSE)

Dependencies

collection, freezed_annotation

More

Packages that depend on async_tools