mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 04:21:57 +00:00
Merge pull request #811 from PPACI/patch-1
more example in example Former-commit-id: e83351ac01e0a254d12e2df9a37fb9a40aba6c4f
This commit is contained in:
@@ -77,7 +77,7 @@ func main() {
|
||||
|
||||
go func() {
|
||||
i := 0
|
||||
for {
|
||||
for range time.Tick(1*time.Second){ //another way to get clock signal
|
||||
mutex.Lock()
|
||||
broadcast(Conn, fmt.Sprintf("aaaa2 %d\n", i))
|
||||
mutex.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user