invidious-copy-2022-08-14/src/invidious/jobs.cr

14 lines
193 B
Crystal
Raw Normal View History

module Invidious::Jobs
JOBS = [] of BaseJob
def self.register(job : BaseJob)
JOBS << job
end
def self.start_all
JOBS.each do |job|
spawn { job.begin }
end
end
end