/// Create a new instance of `AtomicWaker`.
Create a new instance of `AtomicWaker`.
Create a new instance of ` AtomicWaker ` .
pub fn new() -> AtomicWaker {
        rt::execution(|execution| {
            AtomicWaker {
                task: RefCell::new(None),
                // TODO: Make a custom object?
                object: execution.objects.insert(Object::condvar()),
                sync: RefCell::new(Synchronize::new(execution.threads.max())),
            }
        })
    }
pub fn new ( ) -> AtomicWaker { rt :: execution ( | execution | { AtomicWaker { task : RefCell :: new ( None ) , // TODO: Make a custom object? object : execution . objects . insert ( Object :: condvar ( ) ) , sync : RefCell :: new ( Synchronize :: new ( execution . threads . max ( ) ) ) , } } ) }
Create a new instance of `AtomicWaker`.
Create a new instance of ` AtomicWaker ` .