disposebag 1.1.1+1 copy "disposebag: ^1.1.1+1" to clipboard
disposebag: ^1.1.1+1 copied to clipboard

outdated

A package to help disposing Streams and closing Sinks easily.

disposebag #

Author: Petrus Nguyễn Thái Học #

Pub codecov Build Status

A package to help disposing Streams and closing Sinks

Usage #

A simple usage example:

import 'package:disposebag/disposebag.dart';
import 'dart:async';

main() async {
  final controllers = <StreamController>[];
  final subscriptions = <StreamSubscription>[];
 
  final bag = DisposeBag([...subscriptions, ...controllers]);
  await bag.dispose();
  
  print("Bag disposed. It's all good");
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

19
likes
0
pub points
85%
popularity

Publisher

unverified uploader

A package to help disposing Streams and closing Sinks easily.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

collection, meta

More

Packages that depend on disposebag