Skip to content

stream/generator 구현 #5

@pjc0247

Description

@pjc0247
    stream<int> s;

    microthread::task([&s](){
        s.push(4);
            delay(second(1.2f));
        s.push(1);

        // s.push(stream<int>::eof);
        s.push_eof();
    }).schedule();

    for(int v : s){
        printf("%d ", v);
    }

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