updateAsync method

Future<void> updateAsync(
  1. Future<T> value
)

updates the async value while cancelling previous

Implementation

Future<void> updateAsync(Future<T> value) async {
  await _cancel();
  await _updateAsync(value);
}