Tuesday 15 March 2011

go - Variable length channel create -



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).

godoc: https://godoc.org/github.com/eapache/channels#resizablechannel github: https://github.com/eapache/channels/

go

No comments:

Post a Comment