Last active
August 29, 2015 14:16
-
-
Save collinvandyck/c87357b077fe488db8c3 to your computer and use it in GitHub Desktop.
is there something like this in the goland stdlib?
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
| func adaptToChanErr(delegate func() error) chan error { | |
| ch := make(chan error) | |
| go func() { ch <- delegate() }() | |
| return ch | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment