Beispiel #1
0
// Start the watcher. This call will block as long as the watcher is active and
// will only return after Stop() is called. Even after stopping the watcher,
// the structure can not be reused. A new watcher must be created,
func (w *Watcher) Start() error {
	if w.Started {
		return ErrInUse
	}

	w.Started = true
	return uvErr(C.uv_run(w.loop, C.UV_RUN_DEFAULT))
}
Beispiel #2
0
func (loop *Loop) RunOnce() {
	C.uv_run(loop.l, C.UV_RUN_ONCE)
}
Beispiel #3
0
func (loop *Loop) Run() {
	C.uv_run(loop.l, C.UV_RUN_DEFAULT)
}
Beispiel #4
0
func (loop *Loop) Run() {
	C.uv_run(loop.l)
}