Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Tasks

Hierarchy

  • Tasks

Index

Constructors

Methods

Constructors

constructor

  • new Tasks(socket: any): Tasks

Methods

close

  • close(uid: string, callback?: (error: Error) => void): Promise<void>
  • Close a terminated task from the list of tasks.

    Parameters

    • uid: string

      the task's unique ID

    • Optional callback: (error: Error) => void

      the callback function

        • (error: Error): void
        • Parameters

          • error: Error

          Returns void

    Returns Promise<void>

list

  • Obtain information about Dicoogle's running (or terminated) tasks.

    Parameters

    • Optional callback: (error: Error, outcome: TaskOutcome) => void

      the callback function

    Returns Promise<TaskOutcome>

stop

  • stop(uid: string, callback?: (error: Error) => void): Promise<void>
  • Request that a task is stopped.

    Parameters

    • uid: string

      the task's unique ID

    • Optional callback: (error: Error) => void

      the callback function

        • (error: Error): void
        • Parameters

          • error: Error

          Returns void

    Returns Promise<void>

Generated using TypeDoc