Class Timeout
java.lang.Object
org.jenkinsci.plugins.workflow.support.concurrent.Timeout
- All Implemented Interfaces:
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.-
Method Summary
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
limit
-