Example #1
0
func init() {
	// work around issue 1560.
	if runtime.GOMAXPROCS(0) < 2 {
		runtime.GOMAXPROCS(2)
	}

	C.callbackInit()
	go C.runCallbacks()
}
Example #2
0
//export newCallbackRunner
func newCallbackRunner() {
	go C.runCallbacks()
}