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

Function poll_one

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

Source from the content-addressed store, hash-verified

17}
18
19pub fn poll_one() -> Result<Option<SteamEvent>, SteamError> {
20 let _ = crate::app::run_callbacks();
21 queue()
22 .lock()
23 .map(|mut queue| queue.pop_front())
24 .map_err(|_| SteamError::NotReady)
25}
26
27pub fn drain() -> Result<Vec<SteamEvent>, SteamError> {
28 let _ = crate::app::run_callbacks();

Callers

nothing calls this directly

Calls 2

run_callbacksFunction · 0.70
queueFunction · 0.70

Tested by

no test coverage detected