Skip to content

Instantly share code, notes, and snippets.

@KMwich
KMwich / Barrier by using channel
Created February 6, 2019 07:26
HW2, Go to barrier
package main
import (
"fmt"
)
type callback func()
func pulseAll(amount int, pulse chan bool, success callback) {
for i := 0; i < amount; i++ {