# ThreadWaitType

    public enum ThreadWaitType : Equatable, Hashable

A type indicating how the current thread should wait for work scheduled on the GPU to complete.
- `


  ### [none](https://developers.google.com/edge/api/tflite/swift/Enums/ThreadWaitType#/s:19TensorFlowLiteSwift14ThreadWaitTypeO4noneyA2CmF)


  ` The thread does not wait for the work to complete. Useful when the output of the work is used
  with the GPU pipeline.

  #### Declaration

  Swift

      case none

- `


  ### [passive](https://developers.google.com/edge/api/tflite/swift/Enums/ThreadWaitType#/s:19TensorFlowLiteSwift14ThreadWaitTypeO7passiveyA2CmF)


  ` The thread waits until the work is complete.

  #### Declaration

  Swift

      case passive

- `


  ### [active](https://developers.google.com/edge/api/tflite/swift/Enums/ThreadWaitType#/s:19TensorFlowLiteSwift14ThreadWaitTypeO6activeyA2CmF)


  ` The thread waits for the work to complete with minimal latency, which may require additional
  CPU resources.

  #### Declaration

  Swift

      case active

- `


  ### [aggressive](https://developers.google.com/edge/api/tflite/swift/Enums/ThreadWaitType#/s:19TensorFlowLiteSwift14ThreadWaitTypeO10aggressiveyA2CmF)


  ` The thread waits for the work while trying to prevent the GPU from going into sleep mode.

  #### Declaration

  Swift

      case aggressive