Skip to content

Commit 8345d5c

Browse files
Use ZRuntime.Application instead of futures::executor
1 parent 3360df4 commit 8345d5c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

zenoh/src/api/cancellation.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ use tokio::sync::{OwnedSemaphorePermit, Semaphore};
2828
use zenoh_core::{Resolvable, Wait};
2929
#[cfg(feature = "unstable")]
3030
use zenoh_result::ZResult;
31+
use zenoh_runtime::ZRuntime;
3132

3233
#[zenoh_macros::pub_visibility_if_internal]
3334
#[derive(Debug)]
@@ -72,7 +73,7 @@ impl SyncGroup {
7273
#[zenoh_macros::pub_visibility_if_internal]
7374
pub(crate) fn wait(&self) {
7475
let s = self.semaphore.clone();
75-
let _p = futures::executor::block_on(s.acquire_many(Self::max_permits()));
76+
let _p = ZRuntime::Application.block_in_place(s.acquire_many(Self::max_permits()));
7677
self.close();
7778
}
7879

0 commit comments

Comments
 (0)