A strategy that yields the current time slice to the scheduler in favour of other threads or processes.
This is generally used as a strategy for minimising power consumption and priority inversion on targets that have a standard library available. Note that such targets have scheduler-integrated concurrency primitives available, and you should generally use these instead, except in rare circumstances.
impl RefUnwindSafe for Yield
impl UnwindSafe for Yield
type Error = Infallible
The type returned in the event of a conversion error.