Do you mind explain a bit more as to what is linear view and what is a
serial view?
Also I think syncWaitGroup should be fine if I stick a context to
exec.Command and guarantee it's execution time.
On Tuesday, July 25, 2017 at 6:57:19 PM UTC+8, Jesper Louis Andersen wrote:
>
> On Tue, Jul 25, 2
On Tue, Jul 25, 2017 at 6:56 AM Glen Huang wrote:
>
> My current design is that uploading is finished as soon as the image is
> uploaded to the server, after which I spawn a goroutine to exec a command
> to do the compression. When the user requests the image , I'll wait for the
> command to fini
golang.org/x/sync/singleflight is the descendant of
go4.org/syncutil/singleflight which is factored out from camlsitore.org :)
Konstantin Khomoutov ezt írta (időpont: 2017. júl. 25.,
K, 9:04):
> On Mon, Jul 24, 2017 at 11:47:44PM -0700, Tamás Gulácsi wrote:
>
> > See http://godoc.org/go4.org/syn
On Mon, Jul 24, 2017 at 11:47:44PM -0700, Tamás Gulácsi wrote:
> See http://godoc.org/go4.org/syncutil/singleflight for another solution.
> If you key by file name/id, and the function compresses when needed
> and then returns the (de)compressed file, it'll solve your problem.
How is that library