mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-02 20:18:38 -05:00
- A spawned sleep is exempt only when the closure is the direct argument
of `spawn`, not of a call inside it such as `spawn(prepare(|| …))`.
- A bare `spawn` or `sleep`, and a `thread::` path, count only where a
`use` brings them in from `std::thread`; `crate::thread::spawn` and
`std::thread::{self as worker}` do not.
- A sleep hit inside a spawned closure spans through the end of the
spawn statement, so an edit that adds `.join()` there counts as a
change. The brace-less `spawn(|| thread::sleep(D))` form gets the
same span.
- A block operand after a spaced `<` or `>` stays in the loop condition.
- `while n < bound` with `n = n + 1` or `n = n - 1` in the body is a
counted loop, like `n += 1`.
- Calls inside the arguments of `println!`, `eprintln!` and the log
macros are not polling work.