2 ms·
Yes, 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
by brundolf 6y ago
Yes, 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.