Oregami
Repositories/oxedyne/fe2o3

oxedyne/fe2o3/fe2o3_test/src/error.rs

211 bytes, 3 runs

created by r1870400018:1077, which is this file's identity for as long as the history lasts, whatever it is later renamed to

download · who wrote it · its history

1use oxedyne_fe2o3_core::prelude::*;
2
3use std::{
4 thread,
5 time::Duration,
6};
7
8pub fn delayed_error<T: GenTag>(e: Error<T>, delay: u64) -> Error<T> {
9 thread::sleep(Duration::from_secs(delay));
10 e
11}
12