1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! Server executor utilities module
//!
//! This module provides utilities for spawning async tasks within the server's
//! executor context.
//!
//! # Overview
//!
//! The `ServerExecutor` struct provides a unified interface for spawning async
//! tasks regardless of the underlying executor implementation (Tokio, Embassy, etc.).
//!
//! # Usage
//!
//! The executor is used internally by the server to spawn background tasks for:
//! - HTTP/HTTPS server loops
//! - Controller operations
//! - Background services
//!
//! # Executor Abstraction
//!
//! This module abstracts over the `product_os_async_executor` traits, allowing
//! the server to work with different async runtime implementations.
use *;
use Arc;
/// A thin wrapper for spawning async tasks on the server's executor.
///
/// `ServerExecutor` delegates to `product_os_async_executor` to spawn futures
/// in the appropriate runtime context.
pub