BlockSuspend

Just like Block but for suspending functions.

Constructors

Link copied to clipboard
constructor(block: suspend SuspendCallDefinitionScope<T>.(CallArgs) -> T)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun call(scope: FunctionScope): Nothing

By default, it throws runtime exception.

Link copied to clipboard
open suspend override fun callSuspend(scope: FunctionScope): T

Just like call but suspends. By default, it calls call.

Link copied to clipboard
open override fun description(): String

Returns human-readable answer description. By default, it returns answers $this. It's used for debugging purposes.