On Fri, Nov 1, 2019 at 8:07 AM burak sarac <burak...@gmail.com> wrote: > > I have a go routine running something like 'hash.sum(data)' using import > "hash" that I want to terminate immediately in case of user wants to kill, I > can not send channel to notify. I only can think of copying implementation > but then I have to watch each update on library which I really dont want to > mess with. Do you have any suggestions? Code is here > > https://github.com/getsumio/getsum/blob/master/internal/supplier/gosupplier.go#L115
Can you provide a customized hash implementation that will panic based on a flag? > > Thank you too much for help:) > Burak > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/716c9b47-e84b-4aea-b061-45604fd1561e%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAMV2RqpZ3OnA4rtvYHvuE5Juuof1HT4hv%2B4weOnk%2B%2BvcYAHd9g%40mail.gmail.com.