isReady<T extends Object> method
Returns a Future that completes if the instance of an Singleton, defined by Type T
or
by name instanceName
or by passing the an existing instance
, is ready
If you pass a timeout
, an 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,
}) =>
locator.isReady<T>(
instance: instance,
instanceName: instanceName,
timeout: timeout,
callee: callee,
);