Take a look at https://github.com/LK4D4/trylock/blob/master/trylock.go .
I believe that it is easier and performs better.
John
John Souvestre - New Orleans LA
From: [email protected] [mailto:[email protected]] On
Behalf Of [email protected]
Sent: 2016 October 23, Sun 10:30
To: golang-nuts
Subject: [go-nuts] Re: There has no Mutex.Trylock() implemention or similar
method ?
Hi,
Trylock is simple as: https://play.golang.org/p/rpy3Kg1KWW
Regards,
Djadala
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.