Skip to content

Should closures of StreamExt::map and TryStream::map_{ok, err} return a Future? #1889

@taiki-e

Description

@taiki-e

Currently, closures of StreamExt::map and TryStream::{map_ok, map_err} return a value, not a Future. It is probably preferable to change this to return a Future like any other combinator.

The async closure version of map is then, but since the current Future does not return Result, I think it can be removed.

cc @cramertj @Nemo157

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-streamArea: futures::stream

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions