ZXTeam's Cancellation

pub package build status commit activity badge last commit badge twitter badge

Classes

CancellationToken

CancellationTokenSource

SimpleCancellationTokenSource

TimeoutCancellationTokenSource

Usage

A simple usage example:

import 'package:cancellation/cancellation.dart';

main() {
  final cts = SimpleCancellationTokenSource();

  final CancellationToken token = cts.token;

  // pass token to any cancallable function
}

Features and bugs

TBD

Libraries

cancellation