AnsweringCommandClient

The CommandClient of answeringCommandClient: calls holds every request it took, in order.

Properties

Link copied to clipboard

Every call it took, in order, of this client and of every client of gave.

Functions

Link copied to clipboard
open override fun of(caller: Caller): AnsweringCommandClient

This client sending as caller: what it takes goes to the same answer and the same calls.

Link copied to clipboard
open suspend override fun send(request: CommandRequest<*>): CommandResult
Link copied to clipboard
open override fun stream(request: CommandRequest<*>): Flow<CommandResult>

Emits the answer, whatever its status, as a real client's stream emits every result.

Link copied to clipboard
open suspend override fun wait(request: CommandRequest<*>): CommandResult