Package jline.util
Class LineTimeout.Scope
java.lang.Object
jline.util.LineTimeout.Scope
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- LineTimeout
The frame a
LineTimeout.arm(double) call pushed; closing it pops the frame.-
Method Summary
Modifier and TypeMethodDescriptiondoublebudget()The own budget passed toLineTimeout.arm(double), in seconds.voidclose()booleanisArmed()True when a frame was pushed, i.e.booleantripped()True when a checkpoint of this frame (or of a frame nested in it) fired.
-
Method Details
-
isArmed
public boolean isArmed()True when a frame was pushed, i.e. a finite budget is in force. -
budget
public double budget()The own budget passed toLineTimeout.arm(double), in seconds. -
tripped
public boolean tripped()True when a checkpoint of this frame (or of a frame nested in it) fired. -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-