Skip to content

Instantly share code, notes, and snippets.

View tuongaz's full-sized avatar
🏠
Working from home

Tuong Le tuongaz

🏠
Working from home
View GitHub Profile
@tuongaz
tuongaz / cloudSettings
Last active July 24, 2020 02:18
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-07-24T02:18:40.755Z","extensionVersion":"v3.4.3"}
@tuongaz
tuongaz / main.go
Created May 3, 2020 02:33
Example of using sync.Cond and broadcast feature
package main
import (
"fmt"
"sync"
"time"
)
// Listen for broadcast.
// The wg waitgroup is to make sure the listen func is called before the broadcast happens.