Replace std::time::Instant
with trice::Instant
This commit is contained in:
parent
f5739cba48
commit
b357e24e44
3 changed files with 3 additions and 3 deletions
|
@ -40,7 +40,6 @@ use std::mem;
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
use std::sync::atomic::AtomicI64;
|
use std::sync::atomic::AtomicI64;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::time::Instant;
|
|
||||||
use tokio::net::TcpStream;
|
use tokio::net::TcpStream;
|
||||||
use tokio::time;
|
use tokio::time;
|
||||||
use tokio::time::MissedTickBehavior;
|
use tokio::time::MissedTickBehavior;
|
||||||
|
@ -51,6 +50,7 @@ use tokio_tungstenite::tungstenite::Message;
|
||||||
use tokio_tungstenite::Connector;
|
use tokio_tungstenite::Connector;
|
||||||
use tokio_tungstenite::MaybeTlsStream;
|
use tokio_tungstenite::MaybeTlsStream;
|
||||||
use tokio_tungstenite::WebSocketStream;
|
use tokio_tungstenite::WebSocketStream;
|
||||||
|
use trice::Instant;
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
|
||||||
type WsResult<T> = std::result::Result<T, WsError>;
|
type WsResult<T> = std::result::Result<T, WsError>;
|
||||||
|
|
|
@ -39,10 +39,10 @@ use std::marker::PhantomData;
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
use std::sync::atomic::AtomicI64;
|
use std::sync::atomic::AtomicI64;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::time::Instant;
|
|
||||||
use tokio::time;
|
use tokio::time;
|
||||||
use tokio::time::MissedTickBehavior;
|
use tokio::time::MissedTickBehavior;
|
||||||
use tokio_stream::wrappers::IntervalStream;
|
use tokio_stream::wrappers::IntervalStream;
|
||||||
|
use trice::Instant;
|
||||||
use wasm_bindgen_futures::spawn_local;
|
use wasm_bindgen_futures::spawn_local;
|
||||||
use ws_stream_wasm::WsEvent;
|
use ws_stream_wasm::WsEvent;
|
||||||
use ws_stream_wasm::WsMessage as Message;
|
use ws_stream_wasm::WsMessage as Message;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use std::sync::atomic::{AtomicBool, Ordering};
|
use std::sync::atomic::{AtomicBool, Ordering};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::time::Instant;
|
use trice::Instant;
|
||||||
|
|
||||||
/// A 'static view into the cancellation status of a Context.
|
/// A 'static view into the cancellation status of a Context.
|
||||||
#[derive(Clone, Debug, Default)]
|
#[derive(Clone, Debug, Default)]
|
||||||
|
|
Loading…
Reference in a new issue