JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • Classes Task and Task<TResult>

    C# SELF
    60 level,0 lecture
    A practical introduction to .NET asynchrony: what's the difference between Task and Task<TResult>, how to create and run them ( Task.Run, async/ await), manage lifecycle and results, combine tasks ( Task.WhenAll, Task.WhenAny), handle errors and avoid common pitfalls. With live examples, diagrams and tips for real apps.
    Open
  • Comparison of Task and Thread

    C# SELF
    60 level,1 lecture
    We break down the key differences between Task and Thread in .NET: abstractions, execution model, scalability, exception handling, cancellation with CancellationToken, and when to pick tasks vs manual threads. With tables, examples, and practical recommendations for real apps.
    Open
  • Managing multiple tasks

    C# SELF
    60 level,2 lecture
    In practice you often need to run multiple asynchronous operations in parallel and manage their completion. In this lecture we'll cover how to use Task.WhenAll to wait for all tasks to finish, how to get the first result with Task.WhenAny, what happens with exceptions, and how to combine both approaches in real scenarios. Plus — common mistakes and how to avoid them.
    Open
  • Parallel data processing

    C# SELF
    60 level,3 lecture
    In this lecture you'll learn how to speed up CPU-bound tasks by using all CPU cores with the Parallel.For and Parallel.ForEach methods from the System.Threading.Tasks namespace. We'll cover basic syntax, controlling degree of parallelism, safe access to shared state using Interlocked, comparisons with regular loops, and common mistakes with how to avoid them.
    Open
  • Canceling operations: CancellationToken

    C# SELF
    60 level,4 lecture
    In this lecture we'll break down the cancellation infrastructure in .NET: how CancellationToken and CancellationTokenSource work, how to pass tokens into async operations, how to properly stop long-running tasks, handle OperationCanceledException, and design your own methods with cancellation support. We'll show examples with HttpClient.GetAsync, Task.Delay, manual checks of IsCancellationRequested, and clear diagrams.
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy