Skip to content

Binding to Promise.allSettled #5923

Closed
Closed
@cometkim

Description

@cometkim

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/allSettled

type PromiseSettlementResult<V, R> = (
  | PromiseFulfilledResult<V>
  | PromiseRejectedResult<R>
);

type PromiseFulfilledResult<V> = {
  status: 'fulfilled',
  value: V,
};

type PromiseRejectedResult<R> = {
  status: 'rejected',
  reason: R,
}

The return type of that API is a tagged object. In order to add bindings without runtime, the previous issue need to be resolved first.

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