示例#1
0
 def run(self):
     tasks.pause_task()
     return 1
示例#2
0
 def run(self, x, y):
     if x == y:
         tasks.pause_task()
     return x + y
示例#3
0
 def run(self, x, y):
     if x == y:
         tasks.pause_task("test message")
     return x + y