20 from multiprocessing
import Pool
21 from lithops.multiprocessing
import Pool
25 input = [
"HelloWorld",
"HowAreYouToday?",
"HelloWorld",
"HowAreYouToday?",
"HelloWorld",
"HowAreYdsf4f43f4rf4f4f4ouToday?"]
26 output =
"111111111111111111111111111111111111111111111111"
29 trieres_lib=os.environ[
'cFpRootDir'] +
"/HOST/custom/uppercase/languages/python/build"
30 sys.path.append(trieres_lib)
32 out, output = _trieres.uppercase(
"127.0.0.1",
"2718", input,
True)
36 async_result = pool.map_async(my_function, input)
38 result = async_result.get(timeout=30)