Skip to main content

spawn_and_init

Function spawn_and_init 

Source
async fn spawn_and_init(
    component: &str,
    entry: &PackageEntry,
    spawn_env: &PackageSpawnEnv<'_>,
    atlas: &mut AtlasClient,
    children: &mut Vec<Spawned>,
) -> Result<()>
Expand description

Spawn one package and wait for its provider to register with Atlas.

The selected shared or explicit legacy Driver is verified before INIT/ACTIVATE and receives the entry’s config. Omission and explicit shared selections stay shared-only; only an exact namespace legacy selection may accept an upgraded shared runtime Driver. Spawn one package and bring it to INACTIVE (skills) or ACTIVE. The process joins children as soon as it exists, so a Ctrl-C that cancels this future mid-way leaves it where the interrupted-boot teardown stops it; a failure stops it here and takes it back out.

浙ICP备2023005800号-2 浙公网安备33010902005384号