MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / rt

Function rt

benches/completion.rs:26–31  ·  view source on GitHub ↗

Build a tokio runtime for async benchmarks.

()

Source from the content-addressed store, hash-verified

24
25/// Build a tokio runtime for async benchmarks.
26fn rt() -> tokio::runtime::Runtime {
27 tokio::runtime::Builder::new_current_thread()
28 .enable_all()
29 .build()
30 .unwrap()
31}
32
33/// Open a file on the backend.
34async fn open_file(backend: &Backend, uri_str: &str, content: &str) -> Url {

Calls 2

buildMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected