1 2 3 4 5 6 7 8 9
use super::*; /// Global initialized [`SsePlugin`] instance. pub(crate) static SSE_PLUGIN: OnceLock<SsePlugin> = OnceLock::new(); thread_local! { /// Worker-local pool of reusable SSE event coalescing buffers avoiding idle connection retention. pub(crate) static SSE_COALESCE_BUF_POOL: RefCell<Vec<Vec<u8>>> = const { RefCell::new(Vec::new()) }; }