Command

interface Command<Message>

Represents a command that produces messages asynchronously. Commands are used to handle side effects in the Elm Architecture, such as HTTP requests, timers, or other asynchronous operations.

Parameters

Message

The type of message this command will produce

Inheritors

Functions

Link copied to clipboard
abstract suspend fun execute(callback: (Message) -> Unit)

Executes the command and invokes the callback with the resulting message.