MCPcopy Create free account
hub / github.com/SSheldon/rust-dispatch / main

Function main

examples/main.rs:42–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42fn main() {
43 // Read from stdin on a background queue so that the main queue is free
44 // to handle other events. All printing still occurs through the main
45 // queue to avoid jumbled output.
46 prompt(0, Queue::global(QueuePriority::Default));
47
48 unsafe {
49 dispatch::ffi::dispatch_main();
50 }
51}

Callers 1

promptFunction · 0.85

Calls 1

promptFunction · 0.85

Tested by

no test coverage detected