Sequential

interface Sequential<T> : Answer<T>

Interface for every answer that have to be called in repeat when specified in sequentially.

Inheritors

Functions

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

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

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.

Link copied to clipboard
abstract fun hasNext(): Boolean

Returns true if answer should be called again.