removeSubscription method

FutureOr<bool?> removeSubscription(
  1. LightSubscription<T> subs
)

Implementation

FutureOr<bool?> removeSubscription(LightSubscription<T> subs) async {
  if (!_isBusy!) {
    return _onData!.remove(subs);
  } else {
    await Future.delayed(Duration.zero);
    return _onData?.remove(subs);
  }
}