# getTimeout

open fun getTimeout(): Property<Duration>

The timeout of this task.

      task myTask {
          timeout = Duration.ofMinutes(10)
      }

Content copied to clipboard

The Thread executing this task will be interrupted if the task takes longer than the specified amount of time to run. In order for a task to work properly with this feature, it needs to react to interrupts and must clean up any resources it opened.

By default, tasks never time out.

#### Since

5.0