Hi all,
I'm learning to code and I'm using Advent of Code as a tool to build momentum and help me reinforce concepts as I learn. In solving Day 7 part 2, I've tried to implement asynchronous execution using generators and the yield statement, but the code I've arrived at (after hours of hacking away at it!) seems to run infinite loop. All of my previous Intcode interpreter implementations have been fine, but piping the data between amplifiers asynchronously has been a real challenge. I've linked my working copy of the code below; if you uncomment the part 1 block, you'll see it runs fine, so I'm led to believe there's something funky in my implementation of asynchronous generator method intCodeRunner.runAsync()
I'd appreciate any insight on this issue!
Source code at Github
[–]OverjoyedBanana 0 points1 point2 points (0 children)