summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/web/02_timers.js5
-rw-r--r--ext/web/lib.rs2
-rw-r--r--ext/web/timers.rs9
3 files changed, 0 insertions, 16 deletions
diff --git a/ext/web/02_timers.js b/ext/web/02_timers.js
index edad89ace..a4ce33a18 100644
--- a/ext/web/02_timers.js
+++ b/ext/web/02_timers.js
@@ -28,10 +28,6 @@
return core.opSync("op_now");
}
- function sleepSync(millis = 0) {
- return core.opSync("op_sleep_sync", millis);
- }
-
// ---------------------------------------------------------------------------
/**
@@ -372,7 +368,6 @@
clearInterval,
handleTimerMacrotask,
opNow,
- sleepSync,
refTimer,
unrefTimer,
};
diff --git a/ext/web/lib.rs b/ext/web/lib.rs
index ae5cf2d80..b21ea3812 100644
--- a/ext/web/lib.rs
+++ b/ext/web/lib.rs
@@ -52,7 +52,6 @@ pub use crate::message_port::MessagePort;
use crate::timers::op_now;
use crate::timers::op_sleep;
-use crate::timers::op_sleep_sync;
use crate::timers::op_timer_handle;
use crate::timers::StartTime;
pub use crate::timers::TimersPermission;
@@ -111,7 +110,6 @@ pub fn init<P: TimersPermission + 'static>(
op_timer_handle::decl(),
op_cancel_handle::decl(),
op_sleep::decl(),
- op_sleep_sync::decl::<P>(),
])
.state(move |state| {
state.put(blob_store.clone());
diff --git a/ext/web/timers.rs b/ext/web/timers.rs
index eee770719..f57baa559 100644
--- a/ext/web/timers.rs
+++ b/ext/web/timers.rs
@@ -82,12 +82,3 @@ pub async fn op_sleep(
.await?;
Ok(())
}
-
-#[op]
-pub fn op_sleep_sync<TP>(state: &mut OpState, millis: u64)
-where
- TP: TimersPermission + 'static,
-{
- state.borrow::<TP>().check_unstable(state, "Deno.sleepSync");
- std::thread::sleep(Duration::from_millis(millis));
-}