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

            this.CallOnBackground(future);
            return(future);
        }
예제 #2
0
파일: Future.cs 프로젝트: dbremner/tiny
        /// <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);
        }