Method
runasyn
(self, ips, imgs, para = None, callback = None)
Source from the content-addressed store, hash-verified
| 58 | if win!=None: win.write('{}>{}'.format(self.title, para)) |
| 59 | |
| 60 | def runasyn(self, ips, imgs, para = None, callback = None): |
| 61 | TaskManager.add(self) |
| 62 | start = time() |
| 63 | self.run(ips, imgs, para) |
| 64 | IPy.set_info('%s: cost %.3fs'%(ips.title, time()-start)) |
| 65 | ips.update() |
| 66 | TaskManager.remove(self) |
| 67 | if callback!=None:callback() |
| 68 | |
| 69 | def check(self, ips): |
| 70 | note = self.note |
Tested by
no test coverage detected