Re: [go-nuts] How to kill running function from core golang libraries

2019-11-01 Thread burak sarac
Thank you all for your response Jake - thank you for clarification and yes you are correct. Application works like checksum validation server,client. Terminate is only useful if user triggered server to download a very large file but figured wrong setting present and i.e. does ctrl+c on client y

Re: [go-nuts] How to kill running function from core golang libraries

2019-11-01 Thread burak serdar
On Fri, Nov 1, 2019 at 8:07 AM burak sarac 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

Re: [go-nuts] How to kill running function from core golang libraries

2019-11-01 Thread Jake Montgomery
On Friday, November 1, 2019 at 10:30:50 AM UTC-4, Shulhan wrote: > > > On Fri, 1 Nov 2019, 21:07 burak sarac, > > 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

Re: [go-nuts] How to kill running function from core golang libraries

2019-11-01 Thread Mhd Shulhan
On Fri, 1 Nov 2019, 21:07 burak sarac, 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 have not tried this, but you can use a combination of de