Sleep function

Table of Contents

sleep!()

The sleep!() macro suspends the current thread for the specified duration.

Example:

#![allow(unused)]
fn main() {
use std::time;
use surreal_orm::functions::sleep;

let result = sleep!(time::Duration::from_secs(55));
assert_eq!(result.to_raw().build(), "sleep(55s)");
}