16 ms·
The problem is it may be intentional to have the requests be sequential depending on what you're doing. It would be straightforward to identify this kind of cod
by Etheryte 6y ago
The problem is it may be intentional to have the requests be sequential depending on what you're doing. It would be straightforward to identify this kind of code, but the compiler wouldn't be able to tell which was the correct business logic.
- brundolf 6y agoYes, as another commenter pointed out, this would get you into trouble if the endpoint you're calling is stateful at all. And that's definitely not something a compiler could ever reason about.
- tpetry 6y agoOh thats true, didnt think about it. But this problem could be easily solved by adding a „defer“ keyword which is basically await under the hood with the added compiler optimizations.