Create a Fake shutdown event so that users of the API are not required to register a shutdown event
This commit is contained in:
parent
88565d5acd
commit
bab7a9d88e
|
@ -17,9 +17,16 @@
|
|||
|
||||
__version__ = '1.0.0'
|
||||
|
||||
|
||||
class FakeShutdownEvent(object):
|
||||
@staticmethod
|
||||
def isSet():
|
||||
return False
|
||||
|
||||
|
||||
# Some global variables we use
|
||||
source = None
|
||||
shutdown_event = None
|
||||
shutdown_event = FakeShutdownEvent()
|
||||
|
||||
import math
|
||||
import time
|
||||
|
|
Loading…
Reference in New Issue