4 ms·
Agree RE using sequence/index numbers. I would set up a reply array, send indices along with the requests and store each result in the corresponding index. Kee
by grahamj 2y ago
Agree RE using sequence/index numbers. I would set up a reply array, send indices along with the requests and store each result in the corresponding index.
Keep track of the lowest received index and print when the next one comes in. Loop the same for the next index if it's already completed.
Or write it in JS where this would be trivial and compile to executable with Deno.