1. Calculate the duration until the next Sunset
2. Call time.After() for that duration and block on the retuned channel
3. Turn the lights on.
4. Start over at step 1
Two days ago, the app was nearly 10 minutes late at turning on our lights,
but the next night our lights turned on at the right time. I believe that
my goroutine was blocked waiting too long for time.After().
1. Is it possible for reading the channel from time.After(d) to block
significantly longer than d?
2. Mac OS can put the computer to sleep. It used to be that web servers
running on sleeping Macs would not work, but apple must have fixed this as
our computer is set to sleep, yet it successfully serves pages while it
sleeps. Could a sleeping mac affect running goroutines?
3. Would calling time.After(time.Minute) in a while loop instead of calling
time.After() to wait nearly 1 day help?
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.