MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / runtime

Method runtime

editor/src/messages/future/future_message_handler.rs:168–177  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

166#[cfg(not(target_family = "wasm"))]
167impl TokioSpawner {
168 fn runtime(&self) -> &tokio::runtime::Runtime {
169 self.runtime.get_or_init(|| {
170 tokio::runtime::Builder::new_multi_thread()
171 .worker_threads(1)
172 .thread_name("graphite-async")
173 .enable_all()
174 .build()
175 .expect("failed to construct async-message tokio runtime")
176 })
177 }
178}
179
180#[cfg(not(target_family = "wasm"))]

Callers 1

spawnMethod · 0.80

Calls 1

buildMethod · 0.45

Tested by

no test coverage detected