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

Method runasyn

imagepy/core/engine/free.py:26–32  ·  view source on GitHub ↗
(self, para, callback=None)

Source from the content-addressed store, hash-verified

24 print('this is a plugin')
25
26 def runasyn(self, para, callback=None):
27 TaskManager.add(self)
28 start = time()
29 self.run(para)
30 IPy.set_info('%s: cost %.3fs'%(self.title, time()-start))
31 TaskManager.remove(self)
32 if callback!=None:callback()
33
34 def load(self):return True
35

Callers 1

startMethod · 0.95

Calls 4

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

Tested by

no test coverage detected