2 ms·
Regarding the first example in the readme; where is the result variable declared?
by pineapple_guy 3y ago
Regarding the first example in the readme; where is the result variable declared?
- joeycumines 3y agoAh, that example is demonstrating an internal mechanism used to ensure the high-level asynchronous API calls take at least one tick of the event loop to complete. There is no `result` variable - I was just attempting to convey that "some async stuff happens, then it waits if we can't verify that it's not the same tick as when the call started". The "async stuff", in the actual implementation, is sending or receiving.