Created
December 16, 2021 17:45
-
-
Save dragonsinth/c43d94f46e00489f75a709513379c9f5 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
type node struct { | |
value interface{} // the value of the event (nil until ready) | |
next *node // the next node in the stream (nil until ready) | |
ready chan struct{} // a channel whose closure marks readiness | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment