Automatically increases/decreases the gauge around the provided function block.
Automatically increases/decreases the gauge around the provided function block.
val gauge:Gauge.Child = ... gauge.measure{ //code goes here }
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 = gauge.measureAsync{ Future { //code goes here } }
The function returning a Future which to measure
The future created from the provided function block
Resets this gauge to '0'
Resets this gauge to '0'
itself
(Since version ) see corresponding Javadoc for more information.
Class with extensions for the
Gauge.Childclass1.0