Thread-Safe Job Scheduler with Cancellation

Asked at Nuro · System Design for ML · Difficulty: Hard

Implement a `JobScheduler` that periodically executes user-provided functions. The scheduler must support concurrent calls and safe task cancellation.

Loading the problem…