MCPcopy Create free account
hub / github.com/arkhipenko/TaskScheduler / waitForDelayed

Method waitForDelayed

src/TaskScheduler.h:595–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593}
594
595bool Task::waitForDelayed(StatusRequest* aStatusRequest, unsigned long aInterval, long aIterations) {
596 iStatusRequest = aStatusRequest;
597 if ( iStatusRequest != NULL ) { // assign internal StatusRequest var and check if it is not NULL
598 setIterations(aIterations);
599 if ( aInterval ) setInterval(aInterval); // For the delayed version only set the interval if it was not a zero
600 iStatus.waiting = _TASK_SR_DELAY; // with delay equal to the current interval
601 return enable();
602 }
603 return false;
604}
605
606#ifdef _TASK_TIMEOUT
607void StatusRequest::resetTimeout() {

Callers 8

processRequestsMethod · 0.80
blink41Function · 0.80
blink42Function · 0.80
TEST_FFunction · 0.80
blink41Function · 0.80
blink42Function · 0.80
blink41Function · 0.80
blink42Function · 0.80

Calls

no outgoing calls

Tested by 3

blink41Function · 0.64
blink42Function · 0.64
TEST_FFunction · 0.64