Skip to content

Commit 0150613

Browse files
committed
embassy_executor: introduce Spawner::executor_id()
1 parent c951aff commit 0150613

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

embassy-executor/src/spawner.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ impl Spawner {
134134
pub fn make_send(&self) -> SendSpawner {
135135
SendSpawner::new(&self.executor.inner)
136136
}
137+
138+
pub fn executor_id(&self) -> usize {
139+
self.executor.id()
140+
}
137141
}
138142

139143
/// Handle to spawn tasks into an executor from any thread.

0 commit comments

Comments
 (0)