Class Timeout

  • All Implemented Interfaces:
    AutoCloseable

    public class Timeout
    extends Object
    implements AutoCloseable
    Allows operations to be limited in execution time. For example, VirtualChannel.call(hudson.remoting.Callable<V, T>) or FilePath.isDirectory() could otherwise hang forever. Use in a try-with-resources block.