Re: [go-nuts] Any package implementing FIFO mutex?

2022-09-09 Thread David Finkel
Not a drop-in replacement, but there is net/textproto.Pipeline . (intended for sequencing text-based network protocols going over a socket, but it's not too far off) You'd call `Next()` to grab the sequence-handle and then call `p.StartRequest(id)` to gra

[go-nuts] Any package implementing FIFO mutex?

2022-09-09 Thread ChrisLu
"sync.Mutex" is not FIFO. Has any package implemented a dropping for FIFO mutex? One similar solution is to use buffered channel, but it is limited by the buffer size, and requires non-trivial re-architecturing. Chris -- You received this message because you are subscribed to the Google Group