Skip to main content

stdin_closed

Function stdin_closed 

Source
pub async fn stdin_closed()
Expand description

Resolves when standard input reaches its end (or fails). The desktop app starts teamcraft local --exit-with-stdin with a pipe it never writes to: when the app ends – also when it crashes or is killed – the pipe closes and the server and PostgreSQL shut down cleanly. A plain thread, not a blocking tokio task: the runtime would wait for it at shutdown.