(&self)
| 3384 | } |
| 3385 | } |
| 3386 | fn time_until(&self) -> Result<Duration, IoOrPyException> { |
| 3387 | self.deadline |
| 3388 | .checked_duration_since(Instant::now()) |
| 3389 | // past the deadline already |
| 3390 | .ok_or(IoOrPyException::Timeout) |
| 3391 | } |
| 3392 | } |
| 3393 | |
| 3394 | static DEFAULT_TIMEOUT: AtomicCell<f64> = AtomicCell::new(-1.0); |
no outgoing calls
no test coverage detected