MCPcopy Create free account
hub / github.com/Image-Py/imagepy / runasyn

Method runasyn

imagepy/core/engine/simple.py:60–67  ·  view source on GitHub ↗
(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

Callers 1

okMethod · 0.95

Calls 5

runMethod · 0.95
addMethod · 0.45
set_infoMethod · 0.45
updateMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected