Ejemplo n.º 1
0
        /// <summary>
        /// Causes this future to become completed when the specified future is completed.
        /// </summary>
        public static void Bind(this IFuture future, IFuture target)
        {
            OnComplete handler = (f) => {
                future.CopyFrom(f);
            };

            target.RegisterOnComplete(handler);
        }
Ejemplo n.º 2
0
        internal void Abort(IFuture f)
        {
            if (_Future != null)
            {
                _Future.CopyFrom(f);
            }

            Dispose();
        }