forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With regards to Streams, and specifically Streams of Futures, the relationship of .buffered() and Futures[Un]Ordered wasn't clear to me when I started using them. There's substantial simplification that we can do in this area. .buffered() consumes a Stream of Futures. This stream can be created more simply from an iterator of Futures; FuturesOrdered need not be involved. In some cases, the stream! macro isn't needed, we can implement the stream by using the stream combinators in StreamExt.
- Loading branch information
Showing
4 changed files
with
65 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters