whenTimeout method

  1. @override
Future<SplitClient> whenTimeout()
override

Returns Future that is completed if the SDK has not been able to get ready in time.

Implementation

@override
Future<SplitClient> whenTimeout() async {
  await _platform.onTimeout(
      matchingKey: _matchingKey, bucketingKey: _bucketingKey);

  return Future.value(this);
}