mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
13 lines
286 B
Python
13 lines
286 B
Python
from concurrent.futures import ProcessPoolExecutor
|
|
def my_foo(arg_):
|
|
return arg_
|
|
|
|
def main():
|
|
arg = ['Result:OK']
|
|
with ProcessPoolExecutor(1) as exec:
|
|
result = exec.map(my_foo, arg)
|
|
for i in result:
|
|
print(i)
|
|
|
|
if __name__ == '__main__':
|
|
main() |