use Duration;
use Promise;
use *;
use JsFuture;
extern "C"
/// Resolves after the given duration using the global `setTimeout`.
///
/// Avoids depending on `gloo-timers`, which currently fails to compile against
/// recent `wasm-bindgen` versions when `panic=unwind` is enabled (see
/// rustwasm/gloo#562).
pub async