How to setTimeout before calling subTab() in Salesforce workspaceAPI?
setTimeout($A.getCallback()) can be used to setTimeout before calling subTab() in Salesforce workspaceAPI. Check the following sample Lightning Aura Component code for reference. Sample Code: Aura Component: <aura:component implements="flexipage:availableForAllPageTypes" access="global" > <lightning:workspaceAPI ....