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
  • Benefits of asynchronous file operations ( async/ await)

    C# SELF
    42 level,0 lecture
    Why use asynchronous file operations in C#? We break down how async/ await make apps more responsive, servers more scalable, and code simpler. We'll compare synchronous and asynchronous calls ( Read/ Write vs ReadAsync/ WriteAsync), look at the real benefits for UIs and backends, and peek under the hood of .NET I/O.
    Open
  • Asynchronous file read and write ( ReadAsync/ WriteAsync)

    C# SELF
    42 level,1 lecture
    In this lecture we'll unpack asynchronous I/O operations in C# 14 and .NET 9: how to use ReadAsync and WriteAsync, what the keywords async and await do, why ValueTask is useful, and how to work with cancellation via CancellationToken. We'll talk about buffering, await using, practical scenarios and best practices for responsive UIs and scalable servers.
    Open
  • Asynchronous work with text files

    C# SELF
    42 level,2 lecture
    In this lecture you'll learn how to efficiently read and write text files asynchronously in C# using StreamReader, StreamWriter and the static methods of the File class. You'll get why async/ await exist, how they help avoid blocking the UI and scale web apps, how to read huge logs line-by-line, write reports without blocking, and apply best practices ( ConfigureAwait, correct using, error handling). At the end — common mistakes and how to avoid them.
    Open
  • Error handling in asynchronous operations ( async/ await)

    C# SELF
    42 level,3 lecture
    In this lecture we dig into where an exception actually happens during asynchronous I/O, how to correctly use try-catch together with await, why the "fire and forget" pattern is dangerous, when ContinueWith makes sense, which exceptions occur most often ( IOException, UnauthorizedAccessException, ObjectDisposedException, OperationCanceledException) and how to put it all together in a practical example of reading a file.
    Open
  • Cancelling asynchronous operations

    C# SELF
    42 level,4 lecture
    In this lecture we'll go through how to properly cancel long-running and asynchronous operations in .NET using cancellation tokens: CancellationToken and CancellationTokenSource. We'll understand where and how to check for cancellation, how ThrowIfCancellationRequested() and IsCancellationRequested work, how to use cancellation in standard library methods (for example, FileStream.ReadAsync, Task.Delay, HttpClient.SendAsync), and how to set up timeouts. We'll discuss common mistakes and best practices for handling OperationCanceledException.
    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