Skip to main content

update_positions

Function update_positions 

Source
pub fn update_positions(done: i64, window: i64) -> Range<i64> ⓘ
Expand description

The positions an update reports on once done tasks are done and it reports every window of them: the last window positions, none before the first.

use music21::common::parallel::update_positions;

assert_eq!(update_positions(3, 3), 0..3);
assert_eq!(update_positions(2, 3), 0..2);