Exemplo n.º 1
0
        protected internal Future CallOnBackground(Action del)
        {
            Future future = new EmptyFuture(del);

            this.CallOnBackground(future);
            return(future);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Create a future for the specified delegate
        /// </summary>
        /// <param name="del"></param>
        /// <returns></returns>
        public static Future Create(Action del)
        {
            Future future = new EmptyFuture(del);

            future.RunInThreadPool();
            return(future);
        }