fd monitor: hide test-only method

This commit is contained in:
Johannes Altmanninger
2026-04-27 20:27:37 +08:00
parent af8594c611
commit 12e97ea7fc

View File

@@ -135,6 +135,7 @@ pub fn post(&self) {
/// If `wait` is set, wait until it is readable; this does not consume the event
/// but guarantees that the next call to wait() will not block.
/// Return true if readable, false if not readable, or not interrupted by a signal.
#[cfg(test)]
pub fn poll(&self, wait: bool /* = false */) -> bool {
let timeout = if wait {
Timeout::Forever