3 ms·
I’ve wondered what Go APIs involving channels should do when the computer is put to sleep and later on wakes up.
by dmitshur 5y ago
I’ve wondered what Go APIs involving channels should do when the computer is put to sleep and later on wakes up.
- OJFord 5y agoMaybe I haven't done enough Go to know why that's something to wonder about? They wouldn't just carry on when resumed like anything else?
- dmitshur 5y agoYeah, but what should happen to the values that would’ve been sent while the computer was asleep, but couldn’t be. Should they be resent as soon as possible after computer wakes up, or dropped? (It probably depends on the exact API and its needs.)