IRd Call
Functions
Link copied to clipboard
Content copied to clipboard
abstract fun start( lifetime: Lifetime, request: TReq, responseScheduler: IScheduler? = null): IRdTask<TRes>
Content copied to clipboard
Asynchronously invokes the API with the parameters given as request and waits for the result. The returned task will have its result value assigned through the given responseScheduler.
Link copied to clipboard
open suspend fun startSuspending(request: TReq, responseScheduler: IScheduler? = null): TRes
Content copied to clipboard
The same as startSuspending, but the lifetime is equivalent to the lifetime of the current coroutine. Asynchronously invokes the API with the parameters given as request and waits for the result suspending. If you use this method to get a bindable result, then it will be bound to the current IRdCall`s lifetime. If you want to bind the result to a different lifetime, you should use a startSuspending method with lifetime
abstract suspend fun startSuspending( lifetime: Lifetime, request: TReq, responseScheduler: IScheduler? = null): TRes
Content copied to clipboard
Asynchronously invokes the API with the parameters given as request and waits for the result suspending.