Skip to content

Looking for some clarity on Promise<void> #737

Closed
@bathos

Description

@bathos

In the description of void, it’s stated that

The only place that the void type may appear in IDL is as the return type of an operation.

However when describing the ES binding rules for Promise types, in the algorithm perform some steps once a promise is settled, it says:

If T [of Promise<T>] is void, then [...]

Is Promise<void> is permitted, but only as a return type? If so, should the first text be amended to clarify that, or am I misunderstanding what ‘return type’ is inclusive of?

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