Skip to content

Commit

Permalink
1.5.0-nullsafety.1 - Feb 14, 2021
Browse files Browse the repository at this point in the history
  • Loading branch information
hoc081098 committed Feb 14, 2021
1 parent add0855 commit 0c4dc3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[![GitHub](https://img.shields.io/github/license/hoc081098/disposebag?color=4EB1BA)](https://opensource.org/licenses/MIT)
[![Style](https://img.shields.io/badge/style-pedantic-40c4ff.svg)](https://github.com/dart-lang/pedantic)

A package to help disposing Streams and closing Sinks
A package helps to cancel StreamSubscriptions and close Sinks.

## Usage

Expand All @@ -24,7 +24,7 @@ import 'dart:async';
main() async {
final controllers = <StreamController>[];
final subscriptions = <StreamSubscription>[];
final bag = DisposeBag([...subscriptions, ...controllers]);
await Stream.value(3).listen(null).disposedBy(bag);
Expand Down
3 changes: 2 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: disposebag
description: A package to help disposing Streams and closing Sinks easily.
description: A package helps to cancel StreamSubscriptions and close Sinks.
version: 1.5.0-nullsafety.1
author: Petrus Nguyen Thai Hoc <[email protected]>
homepage: https://github.com/hoc081098/disposebag.git
repository: https://github.com/hoc081098/disposebag.git
issue_tracker: https://github.com/hoc081098/disposebag/issues
Expand Down

0 comments on commit 0c4dc3d

Please sign in to comment.