invokeCoroutine

abstract suspend fun invokeCoroutine(instance: Any, parameters: Array<out Any>): Any?

Delegates control over the bean that defines the endpoint

API note: Actual Java synthetic bytecode has a 3rd parameter that is the actual coroutine state machine.

Return

the coroutine result which may be the computation result, or a suspension point.

Parameters

instance

the rest endpoint instance bean

parameters

the call parameters