Variables

read onlydoWork:WorkFunction<(State, WorkOutput) ‑> Void>

The function responsible for carrying out the job.

@:value(0)@:allow(lime.system.WorkOutput)read onlyduration:Float = 0

The total time spent on this job.

In multi-threaded mode, this includes the overhead for sending messages, plus any time spent waiting for a canceled job to return. The latter delay can be reduced by returning at regular intervals.

read onlyid:Int

JobData instances will regularly be copied in HTML5, so checking equality won't work. Instead, compare identifiers.

read onlystate:State

The original State object passed to the job. Avoid modifying this object if the job is running in multi-threaded mode.