On Thu, Jul 25, 2019 at 1:44 AM Ian Lance Taylor wrote:
>
> On Wed, Jul 24, 2019 at 11:24 AM shivaram via golang-nuts
> wrote:
> >
> > Several sources, including this issue comment:
> >
> > https://github.com/golang/go/issues/27544#issuecomment-419265234
> >
> > state that a buffered channel of s
On Wed, Jul 24, 2019 at 11:24 AM shivaram via golang-nuts
wrote:
>
> Several sources, including this issue comment:
>
> https://github.com/golang/go/issues/27544#issuecomment-419265234
>
> state that a buffered channel of size 1 can be used as a trylock by
> select'ing on it with a default case.
Several sources, including this issue comment:
https://github.com/golang/go/issues/27544#issuecomment-419265234
state that a buffered channel of size 1 can be used as a trylock by
select'ing on it with a default case.
I was thinking about it and it seemed to me that with such an
implementation