Companion

object Companion

Functions

Link copied to clipboard
fun <RES, CTX : Context> of(    contextSerdeFactory: SerdeFactory,     options: HandlerRunner.Options = Options.DEFAULT,     runner: suspend (CTX) -> RES): HandlerRunner<Unit, RES, CTX>
fun <REQ, RES, CTX : Context> of(    contextSerdeFactory: SerdeFactory,     options: HandlerRunner.Options = Options.DEFAULT,     runner: suspend (CTX, REQ) -> RES): HandlerRunner<REQ, RES, CTX>

Factory method for dev.restate.sdk.kotlin.HandlerRunner, used by codegen. Please note this may be subject to breaking changes.

Link copied to clipboard
fun <CTX : Context> ofEmptyReturn(    contextSerdeFactory: SerdeFactory,     options: HandlerRunner.Options = Options.DEFAULT,     runner: suspend (CTX) -> Unit): HandlerRunner<Unit, Unit, CTX>
fun <REQ, CTX : Context> ofEmptyReturn(    contextSerdeFactory: SerdeFactory,     options: HandlerRunner.Options = Options.DEFAULT,     runner: suspend (CTX, REQ) -> Unit): HandlerRunner<REQ, Unit, CTX>

Factory method for dev.restate.sdk.kotlin.HandlerRunner, used by codegen. Please note this may be subject to breaking changes.