callSuspendFunction

inline suspend fun callSuspendFunction(receiver: T?, name: String, argumentsBuilder: ArgumentsBuilder = {}): Any?(source)

Call the single function named name with receiver and argumentsBuilder.

If the function is static, receiver is ignored. receiver must be non-null for non-static functions.

See also

Throws

if the function cannot be invoked.

if no function with that name exists.

if more than one function with that name exist.