pub trait RepackLoadMonitor:
Send
+ Sync
+ 'static {
// Required method
fn should_yield(&self) -> bool;
}Expand description
Host-load signal consulted at cooperative checkpoints.
Required Methods§
Sourcefn should_yield(&self) -> bool
fn should_yield(&self) -> bool
Return true while foreground work should take priority.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".