ndemir commented on issue #7304:
URL: https://github.com/apache/arrow-rs/issues/7304#issuecomment-2734978728

   Just to be clear, this request will extend the current interface. Right?
   
   Example Usage:
   
   ```rust
   use object_store::{aws::S3Builder, ExecutionConfig};
   use tokio::runtime::Handle;
   
   // Create a dedicated IO runtime 
   let io_runtime = tokio::runtime::Builder::new_multi_thread()
       .worker_threads(4)
       .thread_name("object-store-io")
       .build()
       .unwrap();
   
   // Create store with specific runtime handle
   let store = S3Builder::from_env()
       .with_runtime_handle(io_runtime.handle().clone())
       .build()?;
   
   // Alternatively
   let exec_config = ExecutionConfig {
       runtime: Some(io_runtime.handle().clone()),
   };
   let store = S3Builder::from_env()
       .with_execution_config(exec_config)
       .build()?;
   
   // Now operations will execute on the io_runtime
   let data = store.get("some/path").await?;
   ```


-- 
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]

Reply via email to