2 ms·
I was calling await on ws_stream.next() - awaiting for there to be a new message. Code: https://gist.github.com/sigaloid/d0e2a7eb42fed8c2397fbf8423999035 https
by sodality2 3y ago
I was calling await on ws_stream.next() - awaiting for there to be a new message.
Code: https://gist.github.com/sigaloid/d0e2a7eb42fed8c2397fbf8423999035 https://gist.github.com/sigaloid/d0e2a7eb42fed8c2397fbf84239...
In the example you give, yes, it's just sequential and everything relies on a previous thing. But say you are making a spotify frontend - you want to render a list of playlists, the profile info, etc - you call await on all of them and they can complete simultaneously.