mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
Merge pull request #811 from PPACI/patch-1
more example in example Former-commit-id: e83351ac01e0a254d12e2df9a37fb9a40aba6c4f
This commit is contained in:
commit
f4b4742eca
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user