Function

isDestroying (destroyable) Boolean public

Module: @ember/destroyable
destroyable
Object|Function
the object to check
returns
Boolean

Receives a destroyable, and returns true if the destroyable has begun destroying. Otherwise returns false.

 let obj = {};
 isDestroying(obj); // false
 destroy(obj);
 isDestroying(obj); // true
 // ...sometime later, after scheduled destruction
 isDestroyed(obj); // true
 isDestroying(obj); // true

© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/3.25/functions/@ember%2Fdestroyable/isDestroying