callSuspend<R> method

R callSuspend<R>(
  1. Array<Any?> args
)

Calls a callable in the current suspend context.

If the callable is not a suspend function, behaves as KCallable.call.

Otherwise, calls the suspend function with current continuation.

Implementation

R callSuspend<R>(Array<Any?> args) => call(args) as R;