mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-11-30 10:59:43 +08:00
15 lines
280 B
C++
15 lines
280 B
C++
from hikyuu.interactive.interactive import *
|
|
class TTT(Task):
|
|
def __init__(self, x):
|
|
super(TTT, self).__init__()
|
|
self.x = x
|
|
|
|
def run(self):
|
|
print(self.x)
|
|
|
|
ts = []
|
|
tg = TaskGroup(2)
|
|
for i in range(5):
|
|
tg.addTask(TTT(i))
|
|
tg.join()
|