fbpTimeout method

Future<T> fbpTimeout(
  1. int seconds,
  2. String function
)

Implementation

Future<T> fbpTimeout(int seconds, String function) {
  return this.timeout(Duration(seconds: seconds), onTimeout: () {
    throw FlutterBluePlusException(
        ErrorPlatform.fbp, function, FbpErrorCode.timeout.index, "Timed out after ${seconds}s");
  });
}