Flushes the console, which has already been written to via `lock`, if syncing is enabled.
(&self, mut lock: StdoutLock<'_>)
| 43 | impl TrivialConsole { |
| 44 | /// Flushes the console, which has already been written to via `lock`, if syncing is enabled. |
| 45 | fn maybe_flush(&self, mut lock: StdoutLock<'_>) -> io::Result<()> { |
| 46 | if self.sync_enabled { lock.flush() } else { Ok(()) } |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | #[async_trait(?Send)] |