Пример #1
0
        /// <summary>
        /// Closes the stream
        /// </summary>
        public void Close(bool dispose = false, Action <UvArgs> callback = null)
        {
            if (this.Status != HandleStatus.Open)
            {
                return;
            }

            _disposeAfterClose = dispose;
            Uvi.uv_close(this.Handle, _closeDelegate);
            this.Status    = HandleStatus.Closing;
            _closeCallback = new UvCallback(this, callback);
        }