[libmill] Re: infinite loop with msleep and interrupt from channel - is it possible?

  • From: Alexander An <alexanderian151@xxxxxxxxxx>
  • To: libmill@xxxxxxxxxxxxx, Martin Sustrik <sustrik@xxxxxxxxxx>
  • Date: Sun, 10 Sep 2017 10:32:59 +0200

I want like this:

https://stackoverflow.com/a/20166250



On 10.09.2017 08:02, Martin Sustrik wrote:

I am not sure I understand. Can you go into more detail?

Martin

On 2017-09-09 09:19, Alexander An wrote:
Go "select case default" construction is compatible with this situation,

but libmill "choose with default or otherwise" execute only once time..


On 09.09.2017 09:11, Alexander An wrote:
Hello!

Can I use pattern in libmill:
infinite loop with msleep and interrupt from channel?

Or how I can stop goroutine?





Other related posts: