Skip to main content

Module cmd

Module cmd 

Source
Expand description

TEA command/effect system for async side-effects. TEA command/effect system.

Cmd values describe async side-effects that update() requests. The execute() function spawns tokio tasks to perform them, sending results back as Message variants through a channel.

Enumsยง

Cmd
A command describing an async side-effect.

Functionsยง

execute
Execute a command by spawning async tasks that send results back through msg_tx.
no_remote_error ๐Ÿ”’
Create an ApiError for when no client exists for a remote name.
spawn_fetch ๐Ÿ”’
Spawn an async fetch task if the client exists, or send an error message.