weighted-select
Usage:
use ;
let select = new
.append
.append
.append
.build;
It produces a stream that combines three underlying streams (fetch_from_*
) and polls them according to their weights (5
, 2
, 3
). Each stream will be polled at most weight
times consecutively.