Skip to content

Commit

Permalink
embassy_executor: introduce Spawner::executor_id()
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Jan 10, 2025
1 parent 881aea3 commit 6eaef1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions embassy-executor/src/spawner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ impl Spawner {
pub fn make_send(&self) -> SendSpawner {
SendSpawner::new(&self.executor.inner)
}

pub fn executor_id(&self) -> usize {
self.executor.id()
}
}

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

0 comments on commit 6eaef1f

Please sign in to comment.