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

Method read_key

sdl/src/console.rs:157–159  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

155 }
156
157 async fn read_key(&mut self) -> io::Result<Key> {
158 Ok(self.on_key_rx.recv().expect("Channel must be alive"))
159 }
160
161 fn show_cursor(&mut self) -> io::Result<()> {
162 self.call(Request::ShowCursor)

Callers 1

Calls 1

recvMethod · 0.80

Tested by 1