W3cubDocs

/Ember.js 4

Class PromiseProxyMixin

public
Defined in: packages/@ember/object/promise-proxy-mixin.ts:47
Module: @ember/object/promise-proxy-mixin

isFulfilled public

Module: @ember/object/promise-proxy-mixin

Will become true if the proxied promise is fulfilled.

isPending public

Module: @ember/object/promise-proxy-mixin

Once the proxied promise has settled this will become false.

isRejected public

Module: @ember/object/promise-proxy-mixin

Will become true if the proxied promise is rejected.

isSettled public

Module: @ember/object/promise-proxy-mixin

Once the proxied promise has settled this will become true.

promise public

Module: @ember/object/promise-proxy-mixin

The promise whose fulfillment value is being proxied by this object.

This property must be specified upon creation, and should not be changed once created.

Example:

import ObjectProxy from '@ember/object/proxy';
import PromiseProxyMixin from '@ember/object/promise-proxy-mixin';

ObjectProxy.extend(PromiseProxyMixin).create({
  promise: <thenable>
});

reason public

Module: @ember/object/promise-proxy-mixin

If the proxied promise is rejected this will contain the reason provided.

© 2022 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/4.9/classes/PromiseProxyMixin/properties