Add wait_until_or_cancelled API to WaitQueue

This commit is contained in:
Chen Chengjun
2024-05-11 17:14:24 +08:00
committed by Tate, Hongliang Tian
parent 91152bceed
commit 2002db5481
4 changed files with 55 additions and 52 deletions

View File

@ -44,7 +44,7 @@ pub(crate) use crate::{
current, current_thread,
error::{Errno, Error},
print, println,
time::Clock,
time::{wait::WaitTimeout, Clock},
};
pub(crate) type Result<T> = core::result::Result<T, Error>;
pub(crate) use crate::{return_errno, return_errno_with_message};