IRdEndpoint

interface IRdEndpoint<TReq, TRes>

Counterpart of IRdCall.

Functions

Link copied to clipboard
open fun set(    cancellationScheduler: IScheduler? = null,     handlerScheduler: IScheduler? = null,     handler: (TReq) -> TRes)

Assigns a handler that executes the API synchronously.

abstract fun set(    cancellationScheduler: IScheduler? = null,     handlerScheduler: IScheduler? = null,     handler: (Lifetime, TReq) -> RdTask<TRes>)

Assigns a handler that executes the API asynchronously.

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard
fun <TReq, TRes> IRdEndpoint<TReq, TRes>.setSuspend(    cancellationScheduler: IScheduler? = null,     handlerScheduler: IScheduler? = null,     handler: suspend (Lifetime, TReq) -> TRes)