Skip to main content

spawn_cloud_discovery

Function spawn_cloud_discovery 

Source
pub fn spawn_cloud_discovery() -> JoinHandle<CloudInfo>
Expand description

Spawn a background thread that probes cloud IMDS endpoints.

Call this before the warm-up sleep so probes run in parallel with the main thread’s warm-up (stateful collector priming + one interval sleep). Join the handle after warm-up to read results; if probes finished during sleep, join returns immediately.