Skip to content

Commit

Permalink
dev(core): fix document
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed May 18, 2023
1 parent 3c61c6c commit 1ea7e74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/concepts/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,12 @@ impl<T, E: Clone, QC> QueryRef<T, E, QC> {
result.map(QueryResult).map_err(Self::clone_err)
}

/// Gets the reference to the font load result.
/// Gets the reference to the (maybe uninitialized) result.
///
/// Returns `None` if the cell is empty, or being initialized. This
/// method never blocks.
///
/// It is possible not hot, so that it is non-inlined
pub fn get_uninitialized(&self) -> QueryResult<'_, Option<Result<T, E>>> {
let borrowed = self.cell.borrow_mut();
let result = RefMut::map(borrowed, |(_, ref mut res)| res);
Expand Down

0 comments on commit 1ea7e74

Please sign in to comment.