• Sam Whited's avatar
    time: Add Until helper function · 67ea7107
    Sam Whited authored
    Adds an Until() function that returns the duration until the given time.
    This compliments the existing Since() function and makes writing
    expressions that have expiration times more readable; for example:
    
        <-After(time.Until(connExpires)):
    
    Fixes #14595
    
    Change-Id: I87998a924b11d4dad5512e010b29d2da6b123456
    Reviewed-on: https://go-review.googlesource.com/20118
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarAndrew Gerrand <adg@golang.org>
    67ea7107
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...