Golang Concurrency: Ignoring request from channel

  • Thread starter Thread starter TheDemx27
  • Start date Start date
  • Tags Tags
    Channel Request
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 1K views
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.