SchedulerService.CancelAsync method
Asynchronously cancels a scheduled job and optionally waits for its runner to complete.
public Task<bool> CancelAsync(string name, TimeSpan? timeout = default)
parameter | description |
---|---|
name | Job name. |
timeout | Optional timeout (default 2s) to wait for completion after signalling cancellation. |
See Also
- class SchedulerService
- namespace Kestrun.Scheduling