Skip to content

Drop as soon as no readers will read the value #1

@Amjad50

Description

@Amjad50

The current behavior of the channel has a small issue for dropping behavior.

Currently, the values in the buffer will only be dropped when its overwritten, thus if the values used are expensive allocations
it will be helped by the channel until its overwritten by another value.

Would be nice to implement a smart behavior to drop the value as soon as the last possible reader reads it.

Maybe this could be implemented by keeping track of how many readers are possible at each node (keep track of number of readers?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions