コード例 #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)
}