MCPcopy Create free account
hub / github.com/PerroEngine/Perro / drain

Function drain

perro_source/api_modules/perro_steamworks/src/disabled.rs:173–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171
172 pub fn drain() -> Result<Vec<SteamEvent>, SteamError> {
173 queue()
174 .lock()
175 .map(|mut queue| queue.drain())
176 .map_err(|_| SteamError::NotReady)
177 }
178
179 pub fn clear() -> Result<(), SteamError> {
180 queue()
181 .lock()

Callers

nothing calls this directly

Calls 1

queueFunction · 0.70

Tested by

no test coverage detected