Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/buttplugio/buttplug
/ wait_for_input
Function
wait_for_input
examples/src/bin/device_control.rs:14–20 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
12
use tokio::io::{self, AsyncBufReadExt, BufReader};
13
14
async fn wait_for_input() {
15
BufReader::new(io::stdin())
16
.lines()
17
.next_line()
18
.await
19
.unwrap();
20
}
21
22
#[tokio::main]
23
async fn main() -> anyhow::Result<()> {
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected