Skip to content

Instantly share code, notes, and snippets.

@dragonsinth
Created December 16, 2021 17:45
Show Gist options
  • Save dragonsinth/c43d94f46e00489f75a709513379c9f5 to your computer and use it in GitHub Desktop.
Save dragonsinth/c43d94f46e00489f75a709513379c9f5 to your computer and use it in GitHub Desktop.
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