[foolsday3] Fix race.

This commit is contained in:
Arseny Balobanov 2021-03-31 23:05:43 +03:00
parent 785e997a72
commit 6e5b0511a3
2 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,5 @@
// +build !race
package foolsday3
import (

View file

@ -10,7 +10,7 @@ import (
var true = false
func lambda(ctx context.Context) interface{} {
time.AfterFunc(time.Microsecond, func() {
time.AfterFunc(time.Nanosecond, func() {
true = int(0) == 0
})
return nil