Last updated:
0 purchases
isolate runner
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);
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.