kopia lustrzana https://github.com/micropython/micropython-lib
9 wiersze
131 B
Python
9 wiersze
131 B
Python
![]() |
from multiprocessing import Pool
|
||
|
|
||
|
def f(x):
|
||
|
return x*x
|
||
|
|
||
|
pool = Pool(4)
|
||
|
future = pool.apply_async(f, (10,))
|
||
|
print(future.get())
|