Пример #1
0
    def test_async_apply_with_iter(self, simple_pool: SimplePool):
        TestSimplePool._initial()
        simple_pool.initial()
        simple_pool.async_apply_with_iter(functions_iter=target_funcs_iter())
        TestSimplePool._chk_record()

        _results = simple_pool.get_result()
        TestSimplePool.chk_results(results=_results, expected_size=Task_Size)
Пример #2
0
 def test_async_apply_with_iter(self, thread_pool: SimplePool):
     TestSimplePool._initial()
     thread_pool.initial()
     thread_pool.async_apply_with_iter(functions_iter=target_funcs_iter())
     TestSimplePool._chk_record()