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
Method defined at the class Push current SpeechSynthesisUtterance to this.queue Array.
Given that English is an equivocal language "queue" can take the form of at least noun and, or verb. The underscore character before the method definition is intended to convey internal usage, not necessarily to be exposed to user, while queue the array is exposed mainly for the purpose of cancelling the actual internal queue of the speech synthesis interface with cancel(), in this case speech-dispatcher, thus queue = [] and _queue(){} with coexist as distinct noun and verb with former being JavaScript Array storage for latter anonymous asynchronous functions that return a Promise object.
Does the above detail provide sufficient disambiguation?
If the above description is not sufficient to for disambiguation, would suggest following Streams Standard re the method ReadableStreamDefaultController.enqueue(), for example, substitute _enqueue() for _queue(), however, we are not actually returning any value here, as speak() does not output values the user has access to per the specifications.
Ah, I get it:
Perhaps change the name of _queue to _addToQueue so it's clearly an action rather than an object (a verb, not a noun).
The text was updated successfully, but these errors were encountered: