/// <summary> /// Runs the event loop in specified mode. /// </summary> /// <param name="mode">Loop run mode.</param> /// <returns>Run status (depends on specified mode).</returns> public int Run(UvLoopRunMode mode = UvLoopRunMode.RunDefault) { this.EnsureCallingThread(); return(Libuv.EnsureSuccess(Libuv.uv_run(this, mode))); }