Opened 8 years ago

Last modified 8 years ago

#5716 enhancement new

Proposed method: IDelayedCall.secondsLeft()

Reported by: teratorn Owned by:
Priority: lowest Milestone:
Component: core Keywords:
Cc: teratorn Branch:


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/ as the only implementor of this interface in Twisted.

Change History (1)

comment:1 Changed 8 years ago by Jean-Paul Calderone

Keywords: easy removed

The idea behind this idea is complicated and involves unresolved issues discussed on #2424.

Note: See TracTickets for help on using tickets.