class EventBus::TaskRunner

Defined in:

eventbus/task.cr

Constant Summary

WAIT_TIME = 5.second

Constructors

Instance Method Summary

Constructor Detail

def self.new(job_count : Int32) #

[View source]

Instance Method Detail

def add_task(task : Task) #

[View source]
def cancel_task(task_id : String) : Nil #

[View source]
def get_job? #

[View source]
def has?(task_id : String, pending_only = false) : Bool #

[View source]
def job_done(id : String) : Nil #

[View source]
def lock : Mutex #

[View source]
def running : Array(String) #

[View source]
def start #

[View source]
def stop #

[View source]
def tasks : Deque(Task) #

[View source]