Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
test_sdl_console_read_key
Function · 0.45
Calls
1
recv
Method · 0.80
Tested by
1
test_sdl_console_read_key
Function · 0.36