isReady<T extends Object> abstract method

Future<void> isReady<T extends Object>({
  1. Object? instance,
  2. String? instanceName,
  3. Duration? timeout,
  4. Object? callee,
})

Returns a Future that completes if the instance of a Singleton, defined by Type T or by name instanceName or by passing an existing instance, is ready If you pass a timeout, a WaitingTimeOutException will be thrown if the instance is not ready in the given time. The Exception contains details on which Singletons are not ready at that time. callee optional parameter which makes debugging easier. Pass this in here.

Implementation

Future<void> isReady<T extends Object>({
  Object? instance,
  String? instanceName,
  Duration? timeout,
  Object? callee,
});