AsyncJobManager

Author

Lossy

Since

2023-03-17

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Cancels and clears all jobs being tracked.

Link copied to clipboard
fun failJob(jobID: JobID)

Marks a certain job as remotely failed.

Link copied to clipboard
fun heartbeatJob(jobID: JobID)

Extends the lifetime of a job.

Link copied to clipboard

Enables or disables periodic checks for job timeouts.

Link copied to clipboard
fun startJob(asyncJob: AsyncJob)

Tracks a job with this manager.

Link copied to clipboard
fun tryCompleteJob(jobID: JobID, callback: CallbackMsg?)

Passes a callback to a pending async job. If the given callback completes the job, the job is removed from this manager.