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_enumeration.rs:11–17 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
9
use tokio::io::{self, AsyncBufReadExt, BufReader};
10
11
async fn wait_for_input() {
12
BufReader::new(io::stdin())
13
.lines()
14
.next_line()
15
.await
16
.unwrap();
17
}
18
19
#[tokio::main]
20
async fn main() -> anyhow::Result<()> {
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected