Skip to content

Support chained stream #95

Open
Open
@ethe

Description

@ethe

Got compiling error on below code:

pub fn chained_stream() -> impl Stream {
    #[stream]
    async {
        yield 1;
    }
    .map(|d| d * 2)
}
error: unexpected token
   --> tests/stream.rs:215:6
    |
215 |     .map(|d| d * 2)
    |      ^^^

I think relying on feature stmt_expr_attributes would makes a little bit hard to support this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions