Example #1
0
        protected internal Future CallOnBackground(Action del)
        {
            Future future = new EmptyFuture(del);

            this.CallOnBackground(future);
            return(future);
        }
Example #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);
        }