Skip to content

Allow all promise collection wrappers to dynamically add promises via $recursive option #155

@geek-merlin

Description

@geek-merlin

(Proposed in #46, implemented in #63) Utils::all() has the $recursive option that makes the collection promise pick up new promises that have been dynamically added to the collection.
The other collection methods (settle, any, some, ...) lack that $recursive option. They should also have it.

My background

I have a use case (recursive redirect resolver) where i rather use Utils::settle() (to not have a fail stop the other requests).
Taking the existing code from ::all(), i could implement this in userland, so no urgency to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions