Ticket #5716 enhancement new
Proposed method: IDelayedCall.secondsLeft()
| Reported by: | teratorn | Owned by: | |
|---|---|---|---|
| Priority: | lowest | Milestone: | |
| Component: | core | Keywords: | |
| Cc: | teratorn | Branch: | |
| Author: | Launchpad Bug: |
Description
It would be nice to have a method for getting the current delay before the IDelayedCall is expected to fire.
Method should return floating point seconds since UNIX epoch, as consistent with other IDelayedCall methods.
My use-case is showing the delay before some OTPs are set to expire.
A quick grep shows class DelayedCall in t/i/base.py as the only implementor of this interface in Twisted.
Change History
Note: See
TracTickets for help on using
tickets.
