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