Skip to content

Commit c951aff

Browse files
committed
embassy-executor: introduce Executor::id()
1 parent 746340f commit c951aff

File tree

1 file changed

+4
-0
lines changed
  • embassy-executor/src/raw

1 file changed

+4
-0
lines changed

embassy-executor/src/raw/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,10 @@ impl Executor {
533533
pub fn spawner(&'static self) -> super::Spawner {
534534
super::Spawner::new(self)
535535
}
536+
537+
pub fn id(&'static self) -> usize {
538+
&self.inner as *const SyncExecutor as usize
539+
}
536540
}
537541

538542
/// Wake a task by `TaskRef`.

0 commit comments

Comments
 (0)