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

Simply offload work to another Isolate or group of Isolates in any Dart program or Flutter application.

example/simple_worker_example.dart

import 'package:simple_worker/simple_worker.dart';

void main() async {
  print(await SimpleWorker().compute(bigTask, data0: 'param'));
}

String bigTask(String param) => '$param $param';
1
likes
150
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

Simply offload work to another Isolate or group of Isolates in any Dart program or Flutter application.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on simple_worker