rd-framework / com.jetbrains.rd.framework / IRdEndpoint

IRdEndpoint

interface IRdEndpoint<TReq, TRes>

Counterpart of IRdCall.

Functions

set

abstract fun set(cancellationScheduler: <ERROR CLASS>? = null, handlerScheduler: <ERROR CLASS>? = null, handler: (<ERROR CLASS>, TReq) -> RdTask<TRes>): Unit

Assigns a handler that executes the API asynchronously.

open fun set(cancellationScheduler: <ERROR CLASS>? = null, handlerScheduler: <ERROR CLASS>? = null, handler: (TReq) -> TRes): Unit

Assigns a handler that executes the API synchronously.

Extension Functions

deepClonePolymorphic

fun <T> T.deepClonePolymorphic(): T

setSuspend

fun <TReq, TRes> IRdEndpoint<TReq, TRes>.setSuspend(cancellationScheduler: <ERROR CLASS>? = null, handlerScheduler: <ERROR CLASS>? = null, handler: suspend (<ERROR CLASS>, TReq) -> TRes): Unit

Inheritors

RdCall

class RdCall<TReq, TRes> : RdReactiveBase, IRdCall<TReq, TRes>, IRdEndpoint<TReq, TRes>