spawn 0.1.0 copy "spawn: ^0.1.0" to clipboard
spawn: ^0.1.0 copied to clipboard

Background execution for Dart that works everywhere - isolates on native, Web Workers on the web, one API. The missing web half of dart:isolate.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add spawn

With Flutter:

 $ flutter pub add spawn

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  spawn: ^0.1.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:spawn/spawn.dart';
0
likes
160
points
87
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Background execution for Dart that works everywhere - isolates on native, Web Workers on the web, one API. The missing web half of dart:isolate.

Repository (GitHub)
View/report issues

Topics

#isolates #concurrency #workers #threading

License

MIT (license)

More

Packages that depend on spawn