Static
ENUMSGets the ID of the task.
The ID of the task.
Gets the current attempt number of the task.
The current attempt number of the task.
Gets the maximum number of attempts for the task.
The maximum number of attempts for the task.
Sets the maximum number of attempts for the task.
The new maximum number of attempts for the task.
Gets the autostart status of the task.
The autostart status of the task.
Gets the completion status of the task.
True if the task progress is 100%, otherwise false.
Gets the count of the task.
The count of the task.
Gets the delay of the task.
The delay of the task in milliseconds.
Sets the delay for the task.
The delay value in milliseconds.
Gets the error of the task.
The error of the task.
Gets the ID of the task.
The ID of the task.
Gets the progress of the task. If the task is set to repeat indefinitely, it returns 0. Otherwise, it calculates the progress as the ratio of the count to the repeat value.
The fractional progress of the task.
Gets the repeat value of the task.
The repeat value of the task.
Sets the repeat value of the task.
The new repeat value for the task.
Gets the current status of the task.
The current status of the task.
Gets the timer of the task.
The timer of the task.
Immediately executes the task and updates the task status to RUNNING. If the task execution results in an error or returns false, it throws a PulseTaskError. Otherwise, it calls the onSuccess method with the result of the task execution.
Returns the instance of the task.
Throws a PulseTaskError if the task execution results in an error or returns false.
Handles an error that occurred during the execution of the task. Updates the task status to ERROR, decreases the count by 1, and attempts to retry the task.
The error that occurred during the execution of the task.
Returns the instance of the task.
Handles the successful execution of the task. Logs the success event, checks if the task needs to be repeated, and if so, restarts the task.
The result of the successful task execution.
Returns the instance of the task.
Attempts to retry the execution of the task. If the number of attempts is less than 0, it stops and starts the task. If the current attempt is greater than or equal to the maximum number of attempts, it stops the task. Otherwise, it stops and starts the task.
Returns the instance of the task.
PulseTask class represents a task with a callback function and various options.