4 ms·
go blocks are cheap to construct and yes they will be GCed. You can trivially debounce the click channel.
by swannodette 13y ago
go blocks are cheap to construct and yes they will be GCed. You can trivially debounce the click channel.
- alco 13y agoThanks for the info! I'm willing to get my hands dirty and see how it's all implemented there. Just for the record, in Go, if you leave a goroutine blocked on a channel, the channel and the goroutine will remain on the heap unless you read everything from the channel (normal way) or close it (and get a runtime panic).