function

abstract val function: Callable<T>

Return

the function being executed that was originally passed into the task. If this was from a startLoop, it will be the function that will be periodically executed, not the wrapped loop, and exception handling will be stripped. Note that for startLoop, Runnable will be converted to a null-returning Callable.