flutter_tools_task_queue 1.0.0 copy "flutter_tools_task_queue: ^1.0.0" to clipboard
flutter_tools_task_queue: ^1.0.0 copied to clipboard

TaskQueue copied from flutter_tools for use in other Dart tools

TaskQueue copied from flutter_tools for use in other Dart tools

Example #

import 'dart:async';

import 'package:flutter_tools_task_queue/flutter_tools_task_queue.dart';

void main() async {
  final queue = TaskQueue();
  for (final i in List<int>.generate(1000, (i) => i)) {
    unawaited(queue.add(() async => print('Processed $i')));
  }
  await queue.tasksComplete;
}

0
likes
160
pub points
32%
popularity

Publisher

verified publisheriodesignteam.com

TaskQueue copied from flutter_tools for use in other Dart tools

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on flutter_tools_task_queue