paleolimbot commented on a change in pull request #12633:
URL: https://github.com/apache/arrow/pull/12633#discussion_r828279264



##########
File path: r/R/config.R
##########
@@ -40,5 +42,7 @@ io_thread_count <- function() {
 #' @param num_threads integer: New number of threads for thread pool
 #' @export
 set_io_thread_count <- function(num_threads) {
+  current_io_thread_count <- io_thread_count()
   SetIOThreadPoolCapacity(as.integer(num_threads))
+  invisible(current_io_thread_count)

Review comment:
       That was the idea...many other options setting things do this in R 
(although if it's confusing it's easy to remove it).
   
   ``` r
   (par(cex = 23))
   #> $cex
   #> [1] 1
   (options(width = 123))
   #> $width
   #> [1] 80
   ```
   




-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to