westonpace commented on code in PR #35440:
URL: https://github.com/apache/arrow/pull/35440#discussion_r1243017657
##########
cpp/src/arrow/util/async_util_test.cc:
##########
@@ -204,6 +204,29 @@ TEST(AsyncTaskScheduler, InitialTaskFails) {
ASSERT_FINISHES_AND_RAISES(Invalid, finished);
}
+TEST(AsyncTaskScheduler, TaskDestroyedBeforeSchedulerEnds) {
+ bool my_task_destroyed = false;
Review Comment:
No. The AsyncTaskScheduler itself does not actually spawn thread tasks. It
relies on the tasks themselves to do this (in fact, it doesn't include
executor.h or have any knowledge of thread pools). So this test does not
involve threads at all and is entirely synchronous.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]