Exemplo n.º 1
0
    def test_imap_unordered(self, simple_pool: SimplePool):
        TestSimplePool._initial()
        simple_pool.initial()
        simple_pool.imap_unordered(function=target_function_for_map,
                                   args_iter=Test_Function_Args)
        TestSimplePool._chk_map_record()

        _results = simple_pool.get_result()
        TestSimplePool.chk_results(results=_results,
                                   expected_size=len(Test_Function_Args))
Exemplo n.º 2
0
 def test_imap_unordered(self, thread_pool: SimplePool):
     TestSimplePool._initial()
     thread_pool.initial()
     thread_pool.imap_unordered(function=map_target_fun,
                                args_iter=Test_Function_Args)
     TestSimplePool._chk_map_record()