Suspending

interface Suspending<T> : Answer<T> (source)

Convenience interface for suspend only answers. By default, it throws runtime exception on blocking call.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun call(scope: MokkerySuspendCallScope): T

Provides a return value for a suspend function call with given scope.

open override fun call(scope: MokkeryBlockingCallScope): Nothing

By default, it throws runtime exception.

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.