LatestExecutor<T extends Object> constructor

LatestExecutor<T extends Object>({
  1. required Future<void> process(
    1. T value
    ),
  2. required DspReg disposers,
})

Implementation

LatestExecutor({
  required this.process,
  required DspReg disposers,
}) : _disposers = disposers {
  disposers.add(() async {
    await _working?.future;
  });
}