code: func pollEvents() {
  	defer context.wg.Done()
  	for {
  		errCode := C.memif_poll_event(C.int(-1))
  		err := getMemifError(int(errCode))
  		if err == ErrPollCanceled {
  			return
  		}
  	}
  }
docs: // pollEvents repeatedly polls for a libmemif event.