dispatched_worker 0.0.4
dispatched_worker: ^0.0.4 copied to clipboard
A wrapper around the WebWorker API
DispatchedWorker #
A wrapper for Dart around the WebWorker API.
Usage #
import 'package:dispatched_worker/dispatched_worker.dart';
main() {
var worker = new DispatchedWorker('path/to/script.js');
worker.send('hello').then((result) {
print(result);
});
}
Credits #
Based on dispatched_worker.coffee by Norman Rzepka.