Method
runasyn
(self, tps, snap, data, para = None, callback = None)
Source from the content-addressed store, hash-verified
| 63 | if win!=None: win.write('{}>{}'.format(self.title, para)) |
| 64 | |
| 65 | def runasyn(self, tps, snap, data, para = None, callback = None): |
| 66 | TaskManager.add(self) |
| 67 | start = time() |
| 68 | self.run(tps, data, snap, para) |
| 69 | IPy.set_info('%s: cost %.3fs'%(tps.title, time()-start)) |
| 70 | tps.update('shp') |
| 71 | TaskManager.remove(self) |
| 72 | if callback!=None:callback() |
| 73 | |
| 74 | def check(self, tps): |
| 75 | print(self.note) |
Tested by
no test coverage detected