some_executor 0.6.3

A trait for libraries that abstract over any executor
Documentation
// SPDX-License-Identifier: MIT OR Apache-2.0

//! Platform-specific implementations

// Time-related types
#[cfg(not(target_arch = "wasm32"))]
pub use std::time::Instant;

#[cfg(target_arch = "wasm32")]
pub use web_time::Instant;

// Platform-specific executor implementations
#[cfg(not(target_arch = "wasm32"))]
pub(crate) mod stdlib;

#[cfg(target_arch = "wasm32")]
pub(crate) mod wasm;

// Re-export the appropriate implementation
#[cfg(not(target_arch = "wasm32"))]
pub(crate) use stdlib::*;

#[cfg(target_arch = "wasm32")]
pub(crate) use wasm::*;