Closed Bug 1661084 Opened 4 years ago Closed 4 years ago

Add CollectWhile algorithm for mozilla::Result

Categories

(Core :: Storage: Quota Manager, task)

task

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: sg, Assigned: sg)

Details

Attachments

(1 file)

For a special case of Rust's collect function, a CollectWhile function template would be useful to use where a mozilla::Result<Ok, E> is expected as an overall result, where the individual steps can also fail with a mozilla::Result<Ok, E> error value.

We decided to add this in dom/quota/QuotaCommon.h for now rather than in mfbt/Result.h.

Component: MFBT → Storage: Quota Manager
Attachment #9171963 - Attachment description: Bug 1661084 - Add CollectWhile algorithm for Result. r=froydnj,janv → Bug 1661084 - Add CollectWhile/CollectEach algorithms for Result. r=froydnj,janv
Pushed by sgiesecke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d0162bb5012e
Add CollectWhile/CollectEach algorithms for Result. r=janv
Pushed by sgiesecke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8915920c6585
Add CollectWhile/CollectEach algorithms for Result. r=janv
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: