def test_async_map_by_args(self, simple_pool: SimplePool): TestSimplePool._initial() simple_pool.initial() simple_pool.async_map_by_args(function=target_function_for_map, args_iter=Test_Function_Multiple_Args) TestSimplePool._chk_map_record() _results = simple_pool.get_result() TestSimplePool.chk_results( results=_results, expected_size=len(Test_Function_Multiple_Args))
def test_async_map_by_args(self, thread_pool: SimplePool): TestSimplePool._initial() thread_pool.initial() thread_pool.async_map_by_args(function=map_target_fun, args_iter=Test_Function_Multiple_Args) TestSimplePool._chk_map_record()