Skip to content

Stream.fromQueue* could take a QueueSource instead of a Queue #2437

@arosien

Description

@arosien

I believe the signatures for Stream.fromQueueUnterminated, etc., could be narrowed to take QueueSource instead of Queue, because they only rely on the take and tryTake methods. Then if users want to translate a Queue to a Stream they don't have to require knowledge of the "write" methods of the Queue, only the "read" methods.

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