pub struct ThreadCreatorUnready { /* private fields */ }
Expand description
See ThreadCreator::unready
for more information
Implementations§
Source§impl ThreadCreatorUnready
impl ThreadCreatorUnready
Sourcepub fn into_promise_and_inner(self) -> (Promise, ThreadCreator)
pub fn into_promise_and_inner(self) -> (Promise, ThreadCreator)
Returns the promise that resolves when the dispatcher is ready,
and the inner ThreadCreator
. Note that the inner creator
can only be used after awaiting on the Promise.
In async context, it might be more convenient to use ready
instead
See the struct documentation for more information
Sourcepub async fn ready(self) -> Result<ThreadCreator, JsValue>
pub async fn ready(self) -> Result<ThreadCreator, JsValue>
Await the dispatcher to be ready.
See the struct documentation for more information
Auto Trait Implementations§
impl !Freeze for ThreadCreatorUnready
impl RefUnwindSafe for ThreadCreatorUnready
impl !Send for ThreadCreatorUnready
impl !Sync for ThreadCreatorUnready
impl Unpin for ThreadCreatorUnready
impl UnwindSafe for ThreadCreatorUnready
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