summaryrefslogtreecommitdiff
path: root/ext/web/timers.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2022-06-13 15:28:00 -0400
committerGitHub <noreply@github.com>2022-06-13 21:28:00 +0200
commit21dfeea3c48cf6101d71b39a1d2b0f9406818300 (patch)
tree0ef0627159ad366d1755081247776b9759b14017 /ext/web/timers.rs
parente6218d9d23f71fe5c42dbd76d3016b147892b476 (diff)
Remove unstable Deno.sleepSync (#14719)
Co-authored-by: David Sherret <dsherret@gmail.com>
Diffstat (limited to 'ext/web/timers.rs')
-rw-r--r--ext/web/timers.rs9
1 files changed, 0 insertions, 9 deletions
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));
-}