Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Task

Hierarchy

  • Task

Implemented by

Index

Methods

Methods

cycle

  • Performs one cycle of work. "One cycle" is an arbitrarily small unit of work. For instance, if the task is to do something to all elements in an array, one cycle could process a set number of elements from the array.

    Parameters

    • task: TaskRunner

      The task that is performing the computation.

    Returns boolean

    False if there is no more work to be done. True otherwise.

reset

  • Inform the computation that it should reset its state to start a computation anew.

    Parameters

    Returns void

Generated using TypeDoc