Skip to main content

spawn_vfs_proxy

Function spawn_vfs_proxy 

Source
pub fn spawn_vfs_proxy(
    ns: Arc<Namespace>,
    subject: Subject,
) -> Sender<VfsRequest>
Expand description

Spawn the async VFS proxy task. Returns a Sender for submitting requests.

The proxy task runs on the tokio runtime and processes VFS operations. MUST be called from within a tokio runtime context.

Each request is executed in its own spawned task so that a panic in any Mount method is caught as a JoinError instead of killing the proxy loop and bricking every shell connected to this namespace.