JavaRush
AI Academy
new
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
  • Exceptions in "fire and forget" tasks

    C# SELF
    61 level,0 lecture
    We dig into where exceptions go in background tasks that aren't awaited: what happens to the Task, why missing await leads to "lost" errors, why async void is dangerous, how to use try- catch and a centralized wrapper, and why TaskScheduler.UnobservedTaskException exists. Practical examples, tables and production recommendations.
    Open
  • Multiple exceptions: AggregateException

    C# SELF
    61 level,1 lecture
    In this lecture we'll go over how .NET aggregates errors from multiple parallel or asynchronous operations into an AggregateException, how behavior differs when using await versus synchronous waiting ( Wait()/ Result), how to work with the InnerExceptions collection, and how to apply Flatten() and Handle() for convenient and safe bulk error handling.
    Open
  • Exceptions in Parallel.For and Parallel.ForEach

    C# SELF
    61 level,2 lecture
    We break down how exceptions behave in parallel loops Parallel.For/ Parallel.ForEach: why they get aggregated into AggregateException, how to correctly handle errors via Handle, how this differs from normal for/ foreach loops, and how calls to Break() and Stop() affect things. With examples, a diagram, and typical pitfalls.
    Open
  • Exceptions in classic Thread

    C# SELF
    61 level,3 lecture
    We break down how exceptions behave in classic Thread threads: how behavior differs between .NET Framework and .NET (Core/5+), why exceptions don't reach the calling code, how to correctly catch them inside the thread, how to pass error info up, why error handling is simpler with Task, plus global handlers and common mistakes.
    Open
  • Consolidated error-handling strategy: Task, async/ await, AggregateException

    C# SELF
    61 level,4 lecture
    This lecture organizes error handling in multithreaded and asynchronous C# code: how to catch exceptions from tasks ( Task), unpack batches of errors via AggregateException, avoid losing failures in fire‑and‑forget scenarios, correctly work with threads ( Thread) and parallel loops, and properly handle cancellation via CancellationToken. With practical examples, tips and common pitfalls.
    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