Created
July 23, 2015 13:46
-
-
Save FooBarWidget/78923324adbf5e61935e 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
switch { | |
// The following line triggers this compiler error: | |
// input.ch <- websocketReadResult literal used as value | |
case input.ch <- websocketReadResult{ messageType, p, nil }: | |
// Do nothing | |
case <- input.cancel: | |
conn.abortWriterFromReaderProcess() | |
break | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment