Метод Dispose в классе System.Threading.Task выполняет очистку ресурсов, используемых задачей. Этот метод вызывает завершение текущей задачи и освобождает все связанные ресурсы, такие как поток, используемый для выполнения задачи. Вызов Dispose также гарантирует, что все внутренние объекты, связанные с задачей, будут корректно освобождены и очищены после завершения задачи. После вызова Dispose задачу уже нельзя использовать или выполнять.
C# (CSharp) System.Threading Task.Dispose - 17 примеров найдено. Это лучшие примеры C# (CSharp) кода для System.Threading.Task.Dispose, полученные из open source проектов. Вы можете ставить оценку каждому примеру, чтобы помочь нам улучшить качество примеров.