queueOrRun

fun <T : IviServiceApi<C, P, PO, LP>, C : IviServiceConnection<P, PO>, P : Any, PO : IviServicePropertiesObserver, LP : Any> T.queueOrRun(action: (T) -> Unit)

Runs an action if the service is available. Otherwise, it adds the action to a queue that will be processed when the service becomes available.