Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 399 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 399 Bytes

Usage

FIFO scheduler: schedule jobs that will be ran in FIFO order sequentially.

alt text

Example

package main 

import (
	"github.com/donutloop/toolkit/schedule"
	"log"
)

func main() {
        // creation of jobs

		s := schedule.NewFIFOScheduler()
    	defer s.Stop()
    
    	for _, job := range jobs {
    		s.Schedule(job)
    	}
    
    	s.WaitFinish(100)
}