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

Function drain

perro_source/api_modules/perro_steamworks/src/events.rs:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27pub 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
35pub fn clear() -> Result<(), SteamError> {
36 queue()

Callers

nothing calls this directly

Calls 2

run_callbacksFunction · 0.70
queueFunction · 0.70

Tested by

no test coverage detected