node.val = ... updates the value the node holds rather than triggering it. You should be using node[] = .... (Btw Consume(true) is blocking, so the comment there is wrong.)
2 Likes
node.val = ... updates the value the node holds rather than triggering it. You should be using node[] = .... (Btw Consume(true) is blocking, so the comment there is wrong.)