AvailTask

class AvailTask(val priority: Int, body: () -> Unit) : Comparable<AvailTask> , Runnable

An AvailTask extends Runnable with a priority. Instances are intended to be executed only by Avail threads.

Author

Todd L Smith

Parameters

priority

The priority, a value in [0..255]. Tasks with higher numerical values typically run before those with lower numerical values. See quasiDeadline.

body

The action to execute for this task.

Constructors

Link copied to clipboard
constructor(priority: Int, body: () -> Unit)

Construct a new AvailTask.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The priority of the task. It must be a value in the range [0..255]. See quasiDeadline.

Functions

Link copied to clipboard
open operator override fun compareTo(other: AvailTask): Int
Link copied to clipboard
open override fun run()