diff --git a/085-sortby.go b/085-sort-by-function.go similarity index 100% rename from 085-sortby.go rename to 085-sort-by-function.go diff --git a/086-spawn.go b/086-spawn.go index 8ad69f6..8fb330b 100644 --- a/086-spawn.go +++ b/086-spawn.go @@ -11,3 +11,6 @@ func main() { fmt.Println("====== Output") fmt.Print(string(out)) } + +// == todo +// full command lines with bash? diff --git a/090-tickers.go b/090-tickers.go index f3d68bb..9601382 100644 --- a/090-tickers.go +++ b/090-tickers.go @@ -9,7 +9,7 @@ func main() { fmt.Println("Tick at", t) } }() - time.Sleep(time.Millisecond * 3000) + time.Sleep(time.Millisecond * 1500) ticker.Stop() fmt.Println("Ticker stopped") } diff --git a/092-timers.go b/092-timers.go index d097ebc..fb271af 100644 --- a/092-timers.go +++ b/092-timers.go @@ -1,20 +1,20 @@ package main -import ("time"; "fmt") +import "time" +import "fmt" func main() { - timer1 := time.NewTimer(time.Millisecond * 500) + timer1 := time.NewTimer(time.Second) <- timer1.C fmt.Println("Timer 1 expired") - stopped1 := timer1.Stop() - fmt.Println("Timer 2 stopped:", stopped1) + stop1 := timer1.Stop() + fmt.Println("Timer 2 stopped:", stop1) timer2 := time.NewTimer(time.Second) go func() { <- timer2.C fmt.Println("Timer 2 expired") }() - time.Sleep(time.Millisecond * 500) - stopped2 := timer2.Stop() - fmt.Println("Timer 2 stopped:", stopped2) + stop2 := timer2.Stop() + fmt.Println("Timer 2 stopped:", stop2) } diff --git a/tool/index.txt b/tool/index.txt index b6c04e3..1d10e27 100644 --- a/tool/index.txt +++ b/tool/index.txt @@ -82,7 +82,7 @@ scatter-gather sha1 signals sort -sortby +sort-by-function spawn string-formatting tcp-client @@ -92,4 +92,4 @@ time timers url users -worker-pool \ No newline at end of file +worker-pool