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

Function poll_one

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

Source from the content-addressed store, hash-verified

164 pub fn poll_one() -> Result<Option<SteamEvent>, SteamError> {
165 queue()
166 .lock()
167 .map(|mut queue| queue.pop_front())
168 .map_err(|_| SteamError::NotReady)
169 }
170
171 pub fn drain() -> Result<Vec<SteamEvent>, SteamError> {
172 queue()
173 .lock()
174 .map(|mut queue| queue.drain())

Callers

nothing calls this directly

Calls 1

queueFunction · 0.70

Tested by

no test coverage detected