Wrap an asynchronous function in a Measurement that logs itself on completion.
If obtaining and awaiting the
computation runs too long according to the threshold
set in the
options, then the log message is a warning, otherwise a debug log.
the name of the measurement to wrap around the function
a description of what the function does, to be included in the log
a supplier of the asynchronous function to wrap
optional addition configuration as for measure