Page MenuHomePhabricator

Add a way to stop scheduleEvery instances.
ClosedPublic

Authored by deadalnix on Nov 6 2018, 17:27.

Details

Summary

Once a task is scheduled to happen on a regular basis, there are no ways to stop it. This diff fixes it.

It does so by making the scheduled function return a bool, which will determine if it is to be executed again.

Test Plan

Add a test case.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable