diff options
Diffstat (limited to 'extensions/timers/lib.rs')
-rw-r--r-- | extensions/timers/lib.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/extensions/timers/lib.rs b/extensions/timers/lib.rs index 5a9b28bb6..e9580c4b5 100644 --- a/extensions/timers/lib.rs +++ b/extensions/timers/lib.rs @@ -18,7 +18,6 @@ use deno_core::op_async; use deno_core::op_sync; use deno_core::Extension; use deno_core::OpState; -use deno_core::ZeroCopyBuf; use std::cell::RefCell; use std::future::Future; use std::pin::Pin; @@ -104,7 +103,7 @@ impl GlobalTimer { pub fn op_global_timer_stop( state: &mut OpState, _args: (), - _zero_copy: Option<ZeroCopyBuf>, + _: (), ) -> Result<(), AnyError> { let global_timer = state.borrow_mut::<GlobalTimer>(); global_timer.cancel(); @@ -122,7 +121,7 @@ pub fn op_global_timer_stop( pub fn op_global_timer_start( state: &mut OpState, timeout: u64, - _zero_copy: Option<ZeroCopyBuf>, + _: (), ) -> Result<(), AnyError> { let deadline = Instant::now() + Duration::from_millis(timeout); let global_timer = state.borrow_mut::<GlobalTimer>(); @@ -133,7 +132,7 @@ pub fn op_global_timer_start( pub async fn op_global_timer( state: Rc<RefCell<OpState>>, _args: (), - _zero_copy: Option<ZeroCopyBuf>, + _: (), ) -> Result<(), AnyError> { let maybe_timer_fut = { let mut s = state.borrow_mut(); @@ -154,7 +153,7 @@ pub async fn op_global_timer( pub fn op_now<TP>( state: &mut OpState, _argument: (), - _zero_copy: Option<ZeroCopyBuf>, + _: (), ) -> Result<f64, AnyError> where TP: TimersPermission + 'static, @@ -180,7 +179,7 @@ where pub fn op_sleep_sync<TP>( state: &mut OpState, millis: u64, - _zero_copy: Option<ZeroCopyBuf>, + _: (), ) -> Result<(), AnyError> where TP: TimersPermission + 'static, |