Skip to main content

create_channels

Function create_channels 

Source
pub fn create_channels(
    channel_size: Option<usize>,
) -> (Sender<ControllerInputPayload>, Receiver<ControllerInputPayload>, Sender<UiMessage>, Receiver<UiMessage>)
Expand description

Creates a pair of channels for TUI-Controller communication

ยงArguments

  • channel_size - Optional buffer size for channels. Uses DEFAULT_CHANNEL_SIZE if None.