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
This is not very important, but you may want some user feedback to justify the implementation. It would be nice if SpeechRecognizer.prototype.recognizeOnceAsync could return a promise in addition to taking callbacks in its arguments. It would not break backward compatibility and improve the user experience IMHO.
maybe there's something here I don't know, but how would changing from taking callbacks to returning a promise not be a breaking change?
I've seen a lot of API's that support both on the same function: the function returns a promise that can be awaited, and it additionally allows you to supply an optional callback that will be called if supplied.
Sorry I didn't formulate well, I edited the issue. I think you can keep the callbacks for backward compatibility and return a promise too. It's not returning anything in the current version.
Hei,
This is not very important, but you may want some user feedback to justify the implementation. It would be nice if
SpeechRecognizer.prototype.recognizeOnceAsync
could return a promise in addition to taking callbacks in its arguments. It would not break backward compatibility and improve the user experience IMHO.From:
To:
The text was updated successfully, but these errors were encountered: