debounce: return result of running the task if the 'leading' option is set to true