Golang Concurrency: Ignoring request from channel

  • Thread starter Thread starter TheDemx27
  • Start date Start date
  • Tags Tags
    Channel Request
AI Thread Summary
The discussion centers on a user's attempt to learn Golang and their specific challenge of ignoring a request from a channel in their code. The user seeks a solution to avoid processing the results from "floatchan2" in the main function. They acknowledge that the current implementation prints every other ratio but are looking for a more streamlined approach. Additionally, the user mentions a side question about their gold status on the forum, expressing confusion about its duration. Ultimately, they found a workaround for their initial problem but still desire a more effective method to achieve their goal of ignoring the channel request.
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.
 
Technology 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.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top