(Apologies if this has already been answered; I did a quick search but haven’t found it yet if so.)
Can anyone point me to a Best Practice / coding pattern I can adopt for rewriting my prototype synchronous intent handler into the needed async/promise form?
(In my case, I’m updating local structures from a database, which COULD run as a scheduled event spinning completely separately from the handlers, so I have a workaround. But that won’t always be an acceptable solution, eg when the network interaction has to tell the user whether it succeeded or failed. So I’d like to understand the general solution. Presuming there is one.)