Exemplo n.º 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))
}
Exemplo n.º 2
0
Arquivo: loop.go Projeto: zchee/gouv
func (loop *Loop) RunOnce() {
	C.uv_run(loop.l, C.UV_RUN_ONCE)
}
Exemplo n.º 3
0
Arquivo: loop.go Projeto: zchee/gouv
func (loop *Loop) Run() {
	C.uv_run(loop.l, C.UV_RUN_DEFAULT)
}
Exemplo n.º 4
0
func (loop *Loop) Run() {
	C.uv_run(loop.l)
}