seededVal method

Fr<T> seededVal(
  1. T seed,
  2. DspReg disposers
)

Implementation

Fr<T> seededVal(T seed, DspReg disposers) {
  final frw = _FwImpl._(value: (_) => seed);

  final listening = listen(frw.set);

  disposers.add(() async {
    await listening.cancel();
    await frw.dispose();
  });

  return frw;
}