SmartThingsCommunity / drlc-prototype

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Combine multiple awaits into Promise.allSettled

j2fong opened this issue · comments

const context = await smartApp.withContext(installedAppId);
and #L29

Each of these await lines doesn't seem to be depending on each other. Maybe we can execute them concurrently and save some execution time.

Change made