Suspending

interface Suspending<T> : Answer<T>

Convenience interface for custom suspending answers. By default, it throws runtime exception on call.

Inheritors

Functions

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

By default, it throws runtime exception.

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

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

Link copied to clipboard
open fun description(): String

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