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
Branch
schedulerstop
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 3786
Build 5646: Bitcoin ABC Buildbot (legacy)
Build 5645: arc lint + arc unit