SchedulerShutdown

Function SchedulerShutdown 

Source
pub async fn SchedulerShutdown(
    SchedulerForShutdown: Arc<Scheduler>,
) -> Result<(), String>
Expand description

Stops the Echo task scheduler and cleans up its resources.

§Arguments

  • SchedulerForShutdown - Arc-wrapped scheduler to shut down

§Returns

A Result indicating success or failure.

§Shutdown Process

This function performs:

  • Stops accepting new tasks
  • Completes in-progress tasks
  • Cleans up scheduler resources

§Errors

Returns an error if the scheduler is not exclusively owned or stop fails.