strut_shutdown

Function strut_shutdown 

Source
pub async fn strut_shutdown()
Expand description

Re-exports the strut_shutdown function to facilitate stand-alone usage of this crate.

When using this crate without the strut crate itself, await on this function as a last thing before completing the main application logic. Terminates the global AppContext and waits for AppSpindown to complete.

This is effectively the global shutdown&clean-up routine for all workloads that integrate with the Strut family of crates via AppContext and AppSpindown.

ยงUsage

When using any of the Strut components without the strut crate itself, await on this function as a last thing before completing the main application logic.