mirror of
https://github.com/kataras/iris.git
synced 2026-01-09 21:15:56 +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() {
|
go func() {
|
||||||
i := 0
|
i := 0
|
||||||
for {
|
for range time.Tick(1*time.Second){ //another way to get clock signal
|
||||||
mutex.Lock()
|
mutex.Lock()
|
||||||
broadcast(Conn, fmt.Sprintf("aaaa2 %d\n", i))
|
broadcast(Conn, fmt.Sprintf("aaaa2 %d\n", i))
|
||||||
mutex.Unlock()
|
mutex.Unlock()
|
||||||
|
|||||||
Reference in New Issue
Block a user