Golang Concurrency: Ignoring request from channel

  • Thread starter Thread starter TheDemx27
  • Start date Start date
  • Tags Tags
    Channel Request
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 2K views · last reply
TheDemx27
Gold Member
Messages
169
Reaction score
13
I'm going back to basics again in an attempt to add golang to my list of "pretty well learned" languages. What I need to do should have a pretty simple solution: I want to ignore a request to get a result from a channel in golang, if you need to know the particular situation I have a link to my code here, where I want to "ignore" floatchan2 in main().

Now I know that it will print out every other ratio when working so you don't need to point that out. :P

Edit: Also, as a side question, why do I still have gold status? I thought my six months expired in November 2014.
 
Physics news on Phys.org
Well, I found a solution that works around it and is less confusing than the original code, so I guess I don't need anyone's help now. Still there should be a way to do what I was asking in the OP, and if someone would find it for me I would be grateful.