pub trait ContextThread {
// Required method
fn thread<T: Send + Sync + Clone + 'static>(
&mut self,
callback: impl Fn(ThreadContext, Receiver<T>) + Sync + Send + 'static,
stop_value: T,
deps: impl PartialEq + Send + Sync + 'static,
) -> EffectHandle<ThreadHandle<T>>;
}Required Methods§
fn thread<T: Send + Sync + Clone + 'static>( &mut self, callback: impl Fn(ThreadContext, Receiver<T>) + Sync + Send + 'static, stop_value: T, deps: impl PartialEq + Send + Sync + 'static, ) -> EffectHandle<ThreadHandle<T>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".