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

Method runasyn

imagepy/core/engine/table.py:65–72  ·  view source on GitHub ↗
(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)

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