multi_stream_controller 0.0.1 copy "multi_stream_controller: ^0.0.1" to clipboard
multi_stream_controller: ^0.0.1 copied to clipboard

A way to easily pipe your streams into one controller

A way to easily pipe your streams into one controller

Usage #

A simple usage example:

import 'package:multi_stream_controller/multi_stream_controller.dart';

void main() async{
  MultiStreamController ctrler1 = MultiStreamController();
  MultiStreamController ctrler2 = MultiStreamController();
  ctrler1.controllers.add(ctrler2);
  ctrler1.pipe();
  ctrler1.add(1);
  ctrler1.add(2);
  ctrler1.add(3);
  ctrler1.close();
  await for (dynamic value in ctrler2.result()){
    print(value);
  }
  //1
  //2
  //3
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0
likes
25
pub points
0%
popularity

Publisher

unverified uploader

A way to easily pipe your streams into one controller

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

stream_channel

More

Packages that depend on multi_stream_controller