Skip to content

Confusing order of tuple returned by promise() #4

Closed
@tomaka

Description

@tomaka

The promise function returns a tuple of (Promise, Complete).

The Promise object is similar to the Receiver object of the channels in the stdlib, while the Complete object is similar to the Sender object.

However in the stdlib, the channel() function returns a tuple of (Sender, Receiver).

I find it confusing that the order of what promise() returns is the opposite of what channel() returns.

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