of

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

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