Make return value of wait function consistent
Closed this issue · 0 comments
hlapp commented
The wait function returns the result parameter directly if the flows API is already initialized, whereas it returns a promise otherwise.
The difference doesn't matter if used in a promise chain. But as a good practice, the function should still return a consistent data type, especially given that possible performance gains from not creating a promise don't matter here at all.