mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-03 20:37:50 +08:00
14 lines
253 B
C++
14 lines
253 B
C++
from hikyuu.interactive.interactive import *
|
|
class TTT(Task):
|
|
def __init__(self, x):
|
|
self.x = x
|
|
|
|
def run():
|
|
print(self.x)
|
|
|
|
ts = []
|
|
tg = TaskGroup()
|
|
for i in range(100):
|
|
ts.append(tg.addTask(TTT(i)))
|
|
tg.join()
|