waitData method

void waitData({
  1. required void timeoutCallback(),
  2. Duration duration = const Duration(seconds: 20),
})

Implementation

void waitData({
  required void Function() timeoutCallback,
  Duration duration = const Duration(seconds: 20),
}) {
  _responseGuard.start(duration, timeoutCallback);
}