| 29 | |
| 30 | Y_UNIT_TEST_SUITE(Async) { |
| 31 | Y_UNIT_TEST(ExtensionExample) { |
| 32 | TMySuperTaskQueue queue; |
| 33 | auto future = NThreading::Async([]() { return 5; }, queue); |
| 34 | future.Wait(); |
| 35 | UNIT_ASSERT_VALUES_EQUAL(future.GetValue(), 5); |
| 36 | } |
| 37 | |
| 38 | Y_UNIT_TEST(WorksWithIMtpQueue) { |
| 39 | auto queue = MakeHolder<TThreadPool>(); |
nothing calls this directly
no test coverage detected