Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a helper for setting or cascading optional promises (#2697)
Motivation: Many operations accept an optional promise. It's not uncommon to batch operations (which may each have their own promise) and complete them as a single operation. Combining these optional promises is slightly tedious. Modifications: - Add an extension to `Optional` to set or cascade a promise - If a promise exists, its result is cascaded to the provided promise. Otherwise the optional is set to the provided promise. Result: It's easier to combine optional promises.
- Loading branch information