You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following my recent request to be able to know Queue lengths, a new getAll() method has just been added in version 4.3.0 (cfr #2018).
Very nice...but the fact is that the created Queue object is currently fully private and not exposed at all to the outside world:
And then later on, be able to invoke queue methods, e.g. :
// With option 1)myPlugin.getQueue().getAll().then((data)=>{console.log('The queue still contains',data.length,'items !');});// With option 2)myQueue.getAll().then((data)=>{console.log('The queue still contains',data.length,'items !');});
The text was updated successfully, but these errors were encountered:
Hi, is there a status update on this feature request?
Without it, it's not possible to get a list of pending requests. For that it's currently necessary to implement it with Queue directly, which is a lot more work.
Workbox is moving to a new engineering team within Google. As part of this move, we're declaring a partial bug bankruptcy to allow the new team to start fresh. We realize this isn't optimal, but realistically, this is the only way we see it working. For transparency, here're the criteria we applied:
Following my recent request to be able to know
Queue
lengths, a newgetAll()
method has just been added in version 4.3.0 (cfr #2018).Very nice...but the fact is that the created
Queue
object is currently fully private and not exposed at all to the outside world:In particular, I would like to be able to also access any (public) queue method outside the Plugin (or outside possible queue callbacks/hooks).
Therefore, I'm suggesting the following changes.
Either expose the
_queue
using a newgetQueue()
method onPlugin
objectOr enrich the Plugin constructor in order to accept
That is to say something like (sorry, I'm not a js guru):
Which would make it possible to have this kind of WB initialisation:
And then later on, be able to invoke queue methods, e.g. :
The text was updated successfully, but these errors were encountered: