Struct erg_compiler::module::promise::SharedPromises
source · pub struct SharedPromises { /* private fields */ }
Implementations§
pub fn new(graph: SharedModuleGraph, root: NormalizedPathBuf) -> Self
pub fn insert(&self, path: impl Into<NormalizedPathBuf>, handle: JoinHandle<()>)
pub fn mark_as_joined(&self, path: impl Into<NormalizedPathBuf>)
pub fn remove(&self, path: &NormalizedPathBuf) -> Option<Promise>
pub fn initialize(&self)
pub fn rename(&self, old: &NormalizedPathBuf, new: NormalizedPathBuf)
pub fn is_registered(&self, path: &NormalizedPathBuf) -> bool
sourcepub fn is_joined(&self, path: &NormalizedPathBuf) -> bool
pub fn is_joined(&self, path: &NormalizedPathBuf) -> bool
If the path is not registered, return false
.
sourcepub fn is_finished(&self, path: &NormalizedPathBuf) -> bool
pub fn is_finished(&self, path: &NormalizedPathBuf) -> bool
If the path is not registered, return false
.
pub fn wait_until_finished(&self, path: &NormalizedPathBuf)
pub fn join(&self, path: &NormalizedPathBuf) -> Result<()>
pub fn join_children(&self)
pub fn join_all(&self)
pub fn progress(&self) -> Progress
Trait Implementations§
source§fn clone(&self) -> SharedPromises
fn clone(&self) -> SharedPromises
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§fn default() -> SharedPromises
fn default() -> SharedPromises
Returns the “default value” for a type. Read more
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)