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 = ... Counters.incAfter(counter){ //code goes here }
The counter to increase
The block of code to execute/measure
The result created from the provided function block
1.1
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 = ... Counters.incAfter(counter){ //code goes here }
The counter to increase
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 = ... Counters.incAfterAsync(counter){ Future { //code goes here } }
The counter to increase
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 = ... Counters.incAfterAsync(counter){ Future { //code goes here } }
The counter to increase
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.
Holds functions related to 'Counters'
1.1