README ¶ Problem 10 Good morning! Here's your coding interview problem for today. This problem was asked by Apple. Implement a job scheduler which takes in a function f and an integer n, and calls f after n milliseconds. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Scheduler func NewScheduler() *Scheduler func (s *Scheduler) Add(after time.Duration, fn func()) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Scheduler ¶ type Scheduler struct { // contains filtered or unexported fields } func NewScheduler ¶ func NewScheduler() *Scheduler func (*Scheduler) Add ¶ func (s *Scheduler) Add(after time.Duration, fn func()) Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.