(&self)
| 166 | #[cfg(not(target_family = "wasm"))] |
| 167 | impl 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"))] |