Skip to main content

async_job 1.0.0 copy "async_job: ^1.0.0" to clipboard
async_job: ^1.0.0 copied to clipboard

Cancel async work in Dart: cooperative cancellation, child tasks, resource cleanup and explicit outcomes, in the manner of structured concurrency. Pure Dart.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add async_job

With Flutter:

 $ flutter pub add async_job

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

dependencies:
  async_job: ^1.0.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:async_job/async_job.dart';
0
likes
160
points
1.12k
downloads

Documentation

Documentation
API reference

Publisher

verified publisheryet-another.dev

Weekly Downloads

Cancel async work in Dart: cooperative cancellation, child tasks, resource cleanup and explicit outcomes, in the manner of structured concurrency. Pure Dart.

Repository (GitHub)
View/report issues

Topics

#async #cancellation #concurrency #dispose #structured-concurrency

License

BSD-3-Clause (license)

Dependencies

meta

More

Packages that depend on async_job