Automatically increases/decreases the gauge around the provided function block.
Automatically increases/decreases the gauge around the provided function block.
val gauge:Gauge.Child = ... Gauges.measure(gauge){ //code goes here }
The gauge to increase/decrease
The block of code to execute/measure
The result created from the provided function block
Automatically increases/decreases the gauge around the provided function block.
Automatically increases/decreases the gauge around the provided function block.
val gauge:Gauge = ... Gauges.measure(gauge){ //code goes here }
The gauge to increase/decrease
The block of code to execute/measure
The result created from the provided function block
Automatically increases/decreases the gauge around the future generated by the function block.
Automatically increases/decreases the gauge around the future generated by the function block. Increases before the future is created and decreases as a side effect of completing the future.
val gauge:Gauge.Child = ... val fut = Gauges.measureAsync(gauge){ Future { //code goes here } }
The gauge to increase/decrease
The function returning a Future which to measure
The future created from the provided function block
Automatically increases/decreases the gauge around the future generated by the function block.
Automatically increases/decreases the gauge around the future generated by the function block. Increases before the future is created and decreases as a side effect of completing the future.
val gauge:Gauge = ... val fut = Gauges.measureAsync(gauge){ Future { //code goes here } }
The gauge to increase/decrease
The function returning a Future which to measure
The future created from the provided function block
Resets the gauge to '0'
Resets the gauge to '0'
The gauge to reset
The gauge
Resets the gauge to '0'
Resets the gauge to '0'
The gauge to reset
The gauge
(Since version ) see corresponding Javadoc for more information.
Holds functions related to 'Gauges'