Skip to content

Commit 412eadb

Browse files
committed
Naming updates
1 parent 9b9dda4 commit 412eadb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/split_ticked_async_executor.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,23 @@ impl SplitTickedAsyncExecutor {
3333
where
3434
O: Fn(TaskState) + Clone + Send + Sync + 'static,
3535
{
36-
let (tx_channel, rx_channel) = mpsc::channel();
36+
let (task_tx, task_rx) = mpsc::channel();
3737
let num_woken_tasks = Arc::new(AtomicUsize::new(0));
3838
let num_spawned_tasks = Arc::new(AtomicUsize::new(0));
3939

4040
#[cfg(feature = "tick_event")]
4141
let (tick_event_tx, tick_event_rx) = tokio::sync::watch::channel(1.0);
4242

4343
let spawner = TickedAsyncExecutorSpawner {
44-
tx_channel,
44+
task_tx,
4545
num_woken_tasks: num_woken_tasks.clone(),
4646
num_spawned_tasks: num_spawned_tasks.clone(),
4747
observer: observer.clone(),
4848
#[cfg(feature = "tick_event")]
4949
tick_event_rx,
5050
};
5151
let ticker = TickedAsyncExecutorTicker {
52-
rx_channel,
52+
task_rx,
5353
num_woken_tasks,
5454
num_spawned_tasks,
5555
observer,
@@ -61,7 +61,7 @@ impl SplitTickedAsyncExecutor {
6161
}
6262

6363
pub struct TickedAsyncExecutorSpawner<O> {
64-
tx_channel: mpsc::Sender<Payload>,
64+
task_tx: mpsc::Sender<Payload>,
6565
num_woken_tasks: Arc<AtomicUsize>,
6666

6767
num_spawned_tasks: Arc<AtomicUsize>,
@@ -132,7 +132,7 @@ where
132132
}
133133

134134
fn runnable_schedule_cb(&self, identifier: TaskIdentifier) -> impl Fn(async_task::Runnable) {
135-
let sender = self.tx_channel.clone();
135+
let sender = self.task_tx.clone();
136136
let num_woken_tasks = self.num_woken_tasks.clone();
137137
let observer = self.observer.clone();
138138
move |runnable| {
@@ -144,7 +144,7 @@ where
144144
}
145145

146146
pub struct TickedAsyncExecutorTicker<O> {
147-
rx_channel: mpsc::Receiver<Payload>,
147+
task_rx: mpsc::Receiver<Payload>,
148148
num_woken_tasks: Arc<AtomicUsize>,
149149
num_spawned_tasks: Arc<AtomicUsize>,
150150
observer: O,
@@ -167,7 +167,7 @@ where
167167
num_woken_tasks = num_woken_tasks.min(limit);
168168
}
169169

170-
self.rx_channel
170+
self.task_rx
171171
.try_iter()
172172
.take(num_woken_tasks)
173173
.for_each(|(identifier, runnable)| {

0 commit comments

Comments
 (0)