go - Variable length channel create -
i trying write queue , i'd need "grow" buffered chans, there way without having create new 1 , moving elements new one?
it not possible standard channels. using intermediate goroutine few tricks can create that's equivalent. will, however, slower native channel. implemented resizablechannel
in channels bundle (disclaimer: wrote it).
go
No comments:
Post a Comment