Skip to content

Add convenience constructor: Stream.single(T value) #29467

Open
@tvolkert

Description

@tvolkert

I often find myself returning streams with a single value. A convenience constructor would alleviate the following:

new Stream<T>.fromIterable(<T>[value])

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.core-llibrary-asynctype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions