HTTPScheduler
The HTTPScheduler
class manages the scheduling of HTTP tasks. It allows for the addition, removal, and execution of tasks at a specified frequency.
Properties
stack
processing
workers
reporter
HTTPScheduler.reporter :: Vendor.Console
limit
HTTPScheduler.limit :: number?
frequency
HTTPScheduler.frequency :: number
Methods
spawnWorker
HTTPScheduler : spawnWorker () -> ()
self: HTTPScheduler
Spawns a new worker task that cycles through scheduled tasks at the specified frequency.
stopWorker
HTTPScheduler : stopWorker () -> ()
self: HTTPScheduler
Stops and removes a worker task.
setFrequency
HTTPScheduler : setFrequency () -> ()
self: HTTPScheduler
frequency: number
Sets the frequency at which tasks are cycled.
cycle
HTTPScheduler : cycle () -> ()
self: HTTPScheduler
Processes the next task in the stack.
isActive
HTTPScheduler : isActive () -> boolean
self: HTTPScheduler
Checks if there are any tasks currently being processed.
setLimit
HTTPScheduler : setLimit () -> ()
self: HTTPScheduler
limit: number
Sets the limit for the number of tasks that can be scheduled.
removeTask
HTTPScheduler : removeTask () -> ()
self: HTTPScheduler
object: function
Removes a task from the scheduler.
addTask
HTTPScheduler : addTask () -> any
self: HTTPScheduler
object: function
Adds a task to the scheduler.
Functions
new
HTTPScheduler . new () -> ()
threadCount: number?
Creates a new instance of HTTPScheduler
.