diff options
author | Rob Austein <sra@hactrn.net> | 2009-04-30 00:35:58 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2009-04-30 00:35:58 +0000 |
commit | de48a7e4dac62ce88aff8fe97ad46ed3ddd9459a (patch) | |
tree | 3c28948264674f6f43e341a27378e109f79e946c /rpkid/rpki/async.py | |
parent | 38343510de72d5d6ab4a21fbef150d6d2de5f25a (diff) |
timer.is_set()
svn path=/rpkid/rpki/async.py; revision=2377
Diffstat (limited to 'rpkid/rpki/async.py')
-rw-r--r-- | rpkid/rpki/async.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rpkid/rpki/async.py b/rpkid/rpki/async.py index 9bf91304..68d90aa8 100644 --- a/rpkid/rpki/async.py +++ b/rpkid/rpki/async.py @@ -94,6 +94,10 @@ class timer(object): except ValueError: pass + def is_set(self): + """Test whether this timer is currently set.""" + return self in self.queue + def expired(self): """Handle a timer that has expired. Subclass must define this.""" raise NotImplementedError |