Skip to content

Instantly share code, notes, and snippets.

@drewp
Created February 22, 2019 07:06
Show Gist options
  • Select an option

  • Save drewp/edd51d38144f09844c1d9e527011fe49 to your computer and use it in GitHub Desktop.

Select an option

Save drewp/edd51d38144f09844c1d9e527011fe49 to your computer and use it in GitHub Desktop.
import threadpool
var events1: Channel[int]
events1.send(1)
proc main():
var events2: Channel[int]
events2.send(2)
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment