File tree Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,8 @@ impl Future for YieldNow {
127
127
/// behavior.
128
128
///
129
129
/// This could be checked at runtime, but it would have runtime cost.
130
+ ///
131
+ /// [`Forever`]: crate::time::Forever
130
132
pub trait ContextExt {
131
133
/// Indicate the work should next be scheduled based on a semaphore being available for "take".
132
134
///
Original file line number Diff line number Diff line change @@ -213,6 +213,8 @@ impl<T: Unpin> Sender<T> {
213
213
/// version.
214
214
///
215
215
/// This has the same behavior as [`send_timeout`], but as an Async function.
216
+ ///
217
+ /// [`send_timeout`]: Sender::send_timeout
216
218
pub fn send_timeout_async < ' a > ( & ' a self , msg : T , timeout : impl Into < Timeout > )
217
219
-> impl Future < Output = Result < ( ) , SendError < T > > > + ' a
218
220
{
Original file line number Diff line number Diff line change 166
166
//! As such, this means that manually constructed work is still built using `Future`. The `_async`
167
167
//! primitives throughout this crate can be used just as readily by hand-written Futures as by async
168
168
//! code. Notable, the use of [`Signal`] will likely be common, along with possible timeouts.
169
+ //!
170
+ //! [`sys::sync::Semaphore`]: crate::sys::sync::Semaphore
171
+ //! [`sync::channel`]: crate::sync::channel
172
+ //! [`sync::Mutex`]: crate::sync::Mutex
173
+ //! [`kio::sync::Mutex`]: crate::kio::sync::Mutex
174
+ //! [`kio::spawn`]: crate::kio::spawn
175
+ //! [`join`]: futures::JoinHandle::join
176
+ //! [`join_async`]: futures::JoinHandle::join_async
169
177
170
178
extern crate alloc;
171
179
@@ -408,6 +416,8 @@ impl Signal {
408
416
///
409
417
/// This reads the status of the signal. If the state is "signalled", this will return
410
418
/// `Some(result)` where the `result` is the result value given to [`raise`].
419
+ ///
420
+ /// [`raise`]: Self::raise
411
421
pub fn check ( & self ) -> Option < c_int > {
412
422
let mut signaled: c_uint = 0 ;
413
423
let mut result: c_int = 0 ;
Original file line number Diff line number Diff line change 10
10
//! time the event is ready. However, work queues expect the work to be queued immediately,
11
11
//! with a "poll" indicating what kind of even the work. Work will be scheduled either based on
12
12
//! one of these events, or a timeout.
13
+ //!
14
+ //! [`SimpleAction`]: super::SimpleAction
13
15
14
16
extern crate alloc;
15
17
You can’t perform that action at this time.
0 commit comments