func init() { // work around issue 1560. if runtime.GOMAXPROCS(0) < 2 { runtime.GOMAXPROCS(2) } C.callbackInit() go C.runCallbacks() }
//export newCallbackRunner func newCallbackRunner() { go C.runCallbacks() }