atomicbox
atomicbox copied to clipboard
Add is_some method to AtomicOptionBox.
Consider adding something like this:
impl<T> AtomicOptionBox<T> {
pub fn is_some(&self, ordering: Ordering) -> bool;
}
It would be helpful for checking whether the box has a value without taking it. A simple use case is just for implementing Debug without exposing the box itself. Also for implementing channels and other concurrent structures.