()
| 25 | } |
| 26 | |
| 27 | pub fn drain() -> Result<Vec<SteamEvent>, SteamError> { |
| 28 | let _ = crate::app::run_callbacks(); |
| 29 | queue() |
| 30 | .lock() |
| 31 | .map(|mut queue| queue.drain()) |
| 32 | .map_err(|_| SteamError::NotReady) |
| 33 | } |
| 34 | |
| 35 | pub fn clear() -> Result<(), SteamError> { |
| 36 | queue() |
nothing calls this directly
no test coverage detected