Skip to content

Commit df43a02

Browse files
committed
comments
1 parent 582aded commit df43a02

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

datafusion-examples/examples/thread_pools_lib/dedicated_executor.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
// under the License.
1717

1818
//! [DedicatedExecutor] for running CPU-bound tasks on a separate tokio runtime.
19-
//!
20-
//! Originally from [InfluxDB 3.0]
21-
//!
22-
//! [InfluxDB 3.0]: https://github.com/influxdata/influxdb3_core/tree/6fcbb004232738d55655f32f4ad2385523d10696/executor
19+
2320
use crate::SendableRecordBatchStream;
2421
use async_trait::async_trait;
2522
use datafusion::physical_plan::stream::RecordBatchStreamAdapter;
@@ -128,6 +125,11 @@ impl From<Builder> for DedicatedExecutorBuilder {
128125
/// drop a runtime in a context where blocking is not allowed it means This
129126
/// happens when a runtime is dropped from within an asynchronous
130127
/// context.', .../tokio-1.4.0/src/runtime/blocking/shutdown.rs:51:21
128+
///
129+
/// # Notes
130+
/// This code is derived from code originally written for [InfluxDB 3.0]
131+
///
132+
/// [InfluxDB 3.0]: https://github.com/influxdata/influxdb3_core/tree/6fcbb004232738d55655f32f4ad2385523d10696/executor
131133
#[derive(Clone, Debug)]
132134
pub struct DedicatedExecutor {
133135
/// State for managing Tokio Runtime Handle for CPU tasks

0 commit comments

Comments
 (0)