示例#1
0
文件: spion.go 项目: kingland/spion
// 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
文件: loop.go 项目: postfix/go-uv
func (loop *Loop) Run() {
	C.uv_run(loop.l)
}