Anton
05/12/2020, 2:31 PMfun <R>myFunc(block: () -> R): R
{
println("starting)
try
{
return block()
}
finally
{
println("end")
}
}
As in the example above, I would like to do some things before the functions run, and some things after. An example would be to measure the execution time. Appreciate any help!Ruckus
05/12/2020, 2:34 PMMike
05/12/2020, 5:39 PM