MCPcopy 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

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

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected