mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
show suspend/resume in test job
This commit is contained in:
parent
8a1e82b5c8
commit
e0ac96d42a
@ -76,6 +76,7 @@ if __debug__: # __dev__ not yet available at this point
|
||||
self._finished = False
|
||||
|
||||
def run(self):
|
||||
self.printingBegin()
|
||||
while True:
|
||||
while self._accum < 100:
|
||||
self._accum += 1
|
||||
@ -87,6 +88,7 @@ if __debug__: # __dev__ not yet available at this point
|
||||
|
||||
if self._counter >= 100:
|
||||
print 'Job.Done'
|
||||
self.printingEnd()
|
||||
yield Job.Done
|
||||
else:
|
||||
yield None
|
||||
|
Loading…
x
Reference in New Issue
Block a user