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.

A wrapper around Isolate #

Usage #

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
150
pub points
19%
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