MCPcopy Index your code
hub / github.com/endbasic/endbasic / set_sync

Method set_sync

sdl/src/console.rs:255–261  ·  view source on GitHub ↗
(&mut self, enabled: bool)

Source from the content-addressed store, hash-verified

253 }
254
255 fn set_sync(&mut self, enabled: bool) -> io::Result<bool> {
256 self.request_tx.send(Request::SetSync(enabled)).expect("Channel must be alive");
257 match self.response_rx.recv().expect("Channel must be alive") {
258 Response::SetSync(result) => result,
259 _ => panic!("Unexpected response type"),
260 }
261 }
262
263 async fn play_tone(&mut self, tone: Tone) -> io::Result<()> {
264 self.call(Request::PlayTone(tone))

Callers 2

test_sdl_console_syncFunction · 0.45
runFunction · 0.45

Calls 1

recvMethod · 0.80

Tested by 1

test_sdl_console_syncFunction · 0.36