isolate_runner 0.0.3 copy "isolate_runner: ^0.0.3" to clipboard
isolate_runner: ^0.0.3 copied to clipboard

A wrapper around Isolate.

example/main.dart

import 'package:isolate_runner/isolate_runner.dart';

Future<void> main() async {
  final isolateRunner = IsolateRunner();

  await isolateRunner.run(() {
    print('Hello Isolate!');
  });
  await isolateRunner.runWithArgs(test, 100);

  await isolateRunner.close();
}

void test(int value) {
  print(value);
}
0
likes
130
pub points
0%
popularity

Publisher

unverified uploader

A wrapper around Isolate.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

More

Packages that depend on isolate_runner