You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A sleep_until method for periodic timing without drifting is needed. In many cases this is much better to use than the sleep function. The Ada Ravenscar profile even forbids the use of the delay facility because it is so less predictable, and often leads to broken code. Currently, there is a periodic method one can use but for more complicated cases one would still need the sleep_until function.
Rust's timers won't be very precise anyway, due to the scheduling model. I think real-time use cases are better suited by an alternate standard library profile.
…cs, r=dswij
Scope `missing_docs_in_private_items` to only private items
`missing_docs_in_private_items` currently detects missing docs for public items as well as private. Since `missing_docs`already covers public items, this PR updates `missing_docs_in_private_items` to only cover private items.
Fixesrust-lang#1895
changelog: [`missing_docs_in_private_items`]: Apply lint only to private items (used to be public and private)
A
sleep_until
method for periodic timing without drifting is needed. In many cases this is much better to use than thesleep
function. The Ada Ravenscar profile even forbids the use of thedelay
facility because it is so less predictable, and often leads to broken code. Currently, there is aperiodic
method one can use but for more complicated cases one would still need thesleep_until
function.Sample usage of the hypothetical
sleep_until
:Wikipedia example of delay causing clock drift http://en.wikibooks.org/wiki/Ada_Style_Guide/Concurrency#Delay_Statements
The text was updated successfully, but these errors were encountered: