Automatically increases the counter when the provided function block has executed.
Automatically increases the counter when the provided function block has executed.
val counter:Counter.Child = ... counter.incAfter{ //code goes here }
The block of code to execute/measure
The result created from the provided function block
1.1
Automatically increases the counter when the future has completed.
Automatically increases the counter when the future has completed.
val counter:Counter.Child = ... counter.incAfterAsync { Future { //code goes here } }
The block of code to execute/measure
The result created from the provided function block
1.1
(Since version ) see corresponding Javadoc for more information.
Class with extensions for the
Counter.Childclass1.1