File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 8
8
[ ![ License] ( https://img.shields.io/badge/license-MIT-green.svg )] ( LICENSE-MIT )
9
9
10
10
` future_queue ` provides ways to run several futures:
11
+
11
12
* concurrently
12
13
* in the order they're spawned
13
14
* with global limits
@@ -98,6 +99,11 @@ except it is possible to specify an optional *group* for each future. Each group
98
99
weight, and a future will only be scheduled if both the maximum weight and the group weight
99
100
aren't exceeded.
100
101
102
+ The adaptor is as fair as possible under the given constraints: it will schedule futures in
103
+ the order they're returned by the stream, without doing any reordering based on weight. When
104
+ a future from a group completes, queued up futures in this group will be preferentially
105
+ scheduled before any other futures from the provided stream.
106
+
101
107
The current weight for groups may exceed the maximum weight, similar to ` future_queue ` .
102
108
103
109
#### Examples
You can’t perform that action at this time.
0 commit comments