MCPcopy Create free account
hub / github.com/endbasic/endbasic / set_sync

Method set_sync

std/src/console/trivial.rs:136–143  ·  view source on GitHub ↗
(&mut self, enabled: bool)

Source from the content-addressed store, hash-verified

134 }
135
136 fn set_sync(&mut self, enabled: bool) -> io::Result<bool> {
137 if !self.sync_enabled {
138 io::stdout().flush()?;
139 }
140 let previous = self.sync_enabled;
141 self.sync_enabled = enabled;
142 Ok(previous)
143 }
144
145 async fn beep(&mut self) -> io::Result<()> {
146 let stdout = io::stdout();

Callers

nothing calls this directly

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected