How to get the first response of calling 5 requests with Http call? The use case is sending 5 http requests then get the first response and cancel others. Any suggestions?
😶 1
j
Jan Skrasek
07/31/2021, 9:40 AM
Use select function. Register all deferred in it and after first receive cancel others.
👍 2
h
Hank
07/31/2021, 9:42 AM
That's really helpful. Thank you so much.
r
Richard Gomez
08/01/2021, 12:34 AM
@Jan Skrasek: Would you mind sharing a snippet of what that would look like? (For learning purposes.)
I'm assuming you're referring to "Selecting deferred values", but am not familiar with the