Skip to content

Require &mut self for stream state controls #1377

Description

@LastExceed

Allowing .start() / .pause() / .stop() to be called simultaneously by different threads seems like an anti-pattern, as it inevitably requires synchronization under the hood. .buffer_size() and .now() should be fine to stay as they are.

Note that this is does not affect the Send + Sync bound

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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