Пример #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))
}
Пример #2
0
Файл: loop.go Проект: zchee/gouv
func (loop *Loop) RunOnce() {
	C.uv_run(loop.l, C.UV_RUN_ONCE)
}
Пример #3
0
Файл: loop.go Проект: zchee/gouv
func (loop *Loop) Run() {
	C.uv_run(loop.l, C.UV_RUN_DEFAULT)
}
Пример #4
0
func (loop *Loop) Run() {
	C.uv_run(loop.l)
}