Task

Group
timer
Methods
4
Fields
None

Methods

MethodReturnsDescription
cancel()()Stop the task where it waits.
isAlive()booleanNot finished, failed or cancelled.
isDone()booleanWhether it ran to its end. A failed or cancelled task is not done, and not alive either.
getError()anyWhat it failed with, or nil.

Method details

cancel

cancel: (Task) -> ()

Stop the task where it waits.

isAlive

isAlive: (Task) -> boolean

Not finished, failed or cancelled.

isDone

isDone: (Task) -> boolean

Whether it ran to its end. A failed or cancelled task is not done, and not alive either.