start

abstract fun start(request: TReq, responseScheduler: IScheduler? = null): IRdTask<TRes>

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.

Parameters

request
responseScheduler

scheduler, which will be used to set the value of the result. The default is the protocol scheduler


abstract fun start(    lifetime: Lifetime,     request: TReq,     responseScheduler: IScheduler? = null): IRdTask<TRes>

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.

Parameters

lifetime

cancellation token and lifetime of the result if it is bindable. The lifetime of the counterpart will be terminated when this lifetime is terminated

request
responseScheduler

scheduler, which will be used to set the value of the result. The default is the protocol scheduler