![Cancelling tasks in C#. NET Tutorial 23 November 2021 - Learn Cancelling tasks in C#. NET Tutorial (388) | Wisdom Jobs India Cancelling tasks in C#. NET Tutorial 23 November 2021 - Learn Cancelling tasks in C#. NET Tutorial (388) | Wisdom Jobs India](https://www.wisdomjobs.com/tutorials/canceling-tasks.gif)
Cancelling tasks in C#. NET Tutorial 23 November 2021 - Learn Cancelling tasks in C#. NET Tutorial (388) | Wisdom Jobs India
![Sergiy Teplyakov ๐บ๐ฆ ๐บ๐ธ on Twitter: "I always thought that `https://t.co/BJnXK9VDkT` will returned a canceled task if the cancellation token is set before the task was scheduled. But I definitely won't expect Sergiy Teplyakov ๐บ๐ฆ ๐บ๐ธ on Twitter: "I always thought that `https://t.co/BJnXK9VDkT` will returned a canceled task if the cancellation token is set before the task was scheduled. But I definitely won't expect](https://pbs.twimg.com/media/FGlgC4lUYAUE6ZG.png)
Sergiy Teplyakov ๐บ๐ฆ ๐บ๐ธ on Twitter: "I always thought that `https://t.co/BJnXK9VDkT` will returned a canceled task if the cancellation token is set before the task was scheduled. But I definitely won't expect
![David Fowler ๐ง๐ง๐บ๐ธ on Twitter: "Async tip don't https://t.co/ehPTQPHXu1 for long running work that blocks the thread. You'll be blocking a thread pool thread. Instead, use Task.Factory.StartNew with TaskCreationOptions.LongRunning or spawn a David Fowler ๐ง๐ง๐บ๐ธ on Twitter: "Async tip don't https://t.co/ehPTQPHXu1 for long running work that blocks the thread. You'll be blocking a thread pool thread. Instead, use Task.Factory.StartNew with TaskCreationOptions.LongRunning or spawn a](https://pbs.twimg.com/media/Do98fVjXkAI_O_M.jpg)
David Fowler ๐ง๐ง๐บ๐ธ on Twitter: "Async tip don't https://t.co/ehPTQPHXu1 for long running work that blocks the thread. You'll be blocking a thread pool thread. Instead, use Task.Factory.StartNew with TaskCreationOptions.LongRunning or spawn a
![Implement background tasks in microservices with IHostedService and the BackgroundService class | Microsoft Docs Implement background tasks in microservices with IHostedService and the BackgroundService class | Microsoft Docs](https://docs.microsoft.com/en-us/dotnet/architecture/microservices/multi-container-microservice-net-applications/media/background-tasks-with-ihostedservice/class-diagram-custom-ihostedservice.png)