Skip to content

pipes::oneshot functions can't take channels/ports #4027

Description

@Aatch

pipes::send_one and pipes::recv_one (and related functions) throw this error: copying a non-copyable variable.

This is the minimum code to reproduce it:

let (chan, port) = pipes::oneshot();
pipes::send_one(chan, true);

That will fail on the second line.

This is actually a big problem, since core::comm is deprecated I don't really have another way to do this kind of communication.

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