bootstack.scheduling.Job#

class bootstack.scheduling.Job(owner, discard)#

Bases: object

Handle for a scheduled task.

Returned by every Schedule method. Call .cancel() to stop a pending job before it fires. Truthy while active, falsy once cancelled or complete.

cancel()#

Cancel the job if it has not already fired or been cancelled.