Пример #1
0
        public ITaskResult CreateFuture(int dueTickTime, Action action)
        {
            if (_disposed)
            {
                throw new ObjectDisposedException("TaskFactory");
            }

            return(new TaskResult(_threadPool, _threadPool.CreateFuture(dueTickTime, action)));
        }