From 448a047ecce424f7365734f9a7992585c397b07a Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 6 Dec 2024 14:10:15 -0700 Subject: [PATCH] remove stale comment about localset from kumo-server-runtime It is no longer accurate --- crates/kumo-server-runtime/src/lib.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/crates/kumo-server-runtime/src/lib.rs b/crates/kumo-server-runtime/src/lib.rs index a2100a06..a4da9b98 100644 --- a/crates/kumo-server-runtime/src/lib.rs +++ b/crates/kumo-server-runtime/src/lib.rs @@ -1,16 +1,3 @@ -//! This is a little helper for routing small units of work to -//! a thread pool that runs a LocalSet + single threaded tokio -//! runtime. -//! -//! The rationale for this is that mlua doesn't currently provide -//! async call implementations that are Send, so it is not possible -//! to use them within the usual Send Future that is required by -//! the normal tokio::spawn function. -//! -//! We use Runtime::run() to spawn a little closure whose purpose -//! is to use tokio::task::spawn_local to spawn the local future. -//! For example, when accepting new connections, we use this to -//! spawn the server processing future. use prometheus::IntGaugeVec; use std::future::Future; use std::sync::atomic::{AtomicUsize, Ordering};