isolated_worker 0.1.1 copy "isolated_worker: ^0.1.1" to clipboard
isolated_worker: ^0.1.1 copied to clipboard

A singleton isolated worker for Flutter (Isolate) and Web (Web Worker).

example/isolated_worker_example.dart

import 'package:isolated_worker/isolated_worker.dart';

void tryPrint(void _) {
  print('Hello from IsolatedWorker');
}

void main() {
  IsolatedWorker().run(tryPrint, null).then((_) => IsolatedWorker().close());
}
copied to clipboard
89
likes
140
points
4.38k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.17 - 2025.04.01

A singleton isolated worker for Flutter (Isolate) and Web (Web Worker).

Repository
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on isolated_worker