Struct makepad_widgets::RevThreadPool
pub struct RevThreadPool { /* private fields */ }
Implementations§
§impl RevThreadPool
impl RevThreadPool
pub fn new(cx: &mut Cx, num_threads: usize) -> RevThreadPool
pub fn execute<F>(&self, task: F)where F: FnOnce() + Send + 'static,
pub fn execute_rev<F>(&self, task: F)where F: FnOnce() + Send + 'static,
Auto Trait Implementations§
impl RefUnwindSafe for RevThreadPool
impl Send for RevThreadPool
impl Sync for RevThreadPool
impl Unpin for RevThreadPool
impl UnwindSafe for RevThreadPool
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