Function gstd::exec::sleep_for

source ยท
pub fn sleep_for(block_count: u32) -> impl Future<Output = ()>
Expand description

Delays message execution in asynchronous way for the specified number of blocks. It works pretty much like the exec::wait_for function, but allows to continue execution after the delay in the same handler. It is worth mentioning that the program state gets persisted inside the call, and the execution resumes with potentially different state.