Created
July 13, 2015 20:01
-
-
Save BrianHicks/c8629a864f3b70e2acc3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var val MaybeKVPairs | |
select { | |
case val = <-pairs: | |
case <-time.After(1 * time.Second): | |
t.Error("no value received before timeout") | |
t.Fail() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment