Skip to main content

Block and wait another task (thread.wait)

Declaration

thread.wait(task_id, timeout_seconds)

Parameters

  • timeout_seconds
    Number. Timeout in seconds. Returns after timeout.
  • task_id
    Integer.

Notes

Block the current thread and wait for another task to finish.

Example

See chapter end