http://play.golang.org/p/xn99smXFsK Compare the behaviour in go vs. gopherjs: After the time.Sleep() interval the "debounce" goroutine stops in go but not in gopherjs