MCPcopy 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

9use tokio::io::{self, AsyncBufReadExt, BufReader};
10
11async fn wait_for_input() {
12 BufReader::new(io::stdin())
13 .lines()
14 .next_line()
15 .await
16 .unwrap();
17}
18
19#[tokio::main]
20async fn main() -> anyhow::Result<()> {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected