[ https://issues.apache.org/jira/browse/ARROW-12938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17649474#comment-17649474 ]
David Li commented on ARROW-12938: ---------------------------------- It looks like this should be possible now, using a self-pipe and a thread? There'll also be a little fiddliness to register and unregister callbacks (assuming a StopToken is meant to be sharable among multiple actions). > [C++] Investigate spawning arbitrary callbacks from StopToken > ------------------------------------------------------------- > > Key: ARROW-12938 > URL: https://issues.apache.org/jira/browse/ARROW-12938 > Project: Apache Arrow > Issue Type: Improvement > Components: C++ > Reporter: Antoine Pitrou > Priority: Major > > In some situations, we may want to forward stop requests to external > runtimes, e.g. gRPC (see https://github.com/apache/arrow/pull/10318 ), > without polling. > Ideally, one may temporarily add a callback to a StopToken. This bears > complications, especially in the case where the stop request comes from a > signal handler. -- This message was sent by Atlassian Jira (v8.20.10#820010)