this function wraps on top of a promise-resolver function, and returns two functions.
the first function, when called, will resolve the original promise_resolverafter the specified delay amount of milliseconds have passed.
during this delay time, you may use the second function that is returned to cancel the task of running the promise_resolver before it times out.
you also have the option to specify the delay for the next time the returned resolve function is called.
if it is not specified, then the original_delay will be used in its place.
this function wraps on top of a promise-resolver function, and returns two functions. the first function, when called, will resolve the original
promise_resolverafter the specifieddelayamount of milliseconds have passed. during this delay time, you may use the second function that is returned to cancel the task of running thepromise_resolverbefore it times out. you also have the option to specify thedelayfor the next time the returnedresolvefunction is called. if it is not specified, then theoriginal_delaywill be used in its place.