start

fun start(lifetime: Lifetime, request: TReq): IRdTask<TRes>


open override fun start(lifetime: Lifetime, request: TReq, responseScheduler: IScheduler?): 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


open override fun start(request: TReq, responseScheduler: IScheduler?): IRdTask<TRes>

Deprecated

Use overload with lifetime

Replace with

import com.jetbrains.rd.util.lifetime.Lifetime
start(/*lifetime*/, request, responseScheduler)

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


fun start(request: TReq): IRdTask<TRes>

Deprecated

Use overload with lifetime

Replace with

import com.jetbrains.rd.util.lifetime.Lifetime
start(/*lifetime*/, request)