Opened 3 years ago

Last modified 2 years ago

#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 (1)

comment:1 Changed 2 years ago by exarkun

  • 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.