How to get current queue in ember.js?

by arnoldo.moen , in category: Javascript , 4 months ago

How to get current queue in ember.js?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by mallory_cormier , 4 months ago

@arnoldo.moen 

To get the current queue in Ember.js, you can use the Ember.run.currentRunLoop function. This function returns the currently executing run loop queue.


Here is an example of how you can get the current queue in Ember.js:

1
2
3
let currentQueue = Ember.run.currentRunLoop;

console.log(currentQueue);


You can use this method to determine the current queue being executed in your Ember.js application and perform any necessary actions based on it.