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
  • Asynchronous data streams

    C# SELF
    62 level,0 lecture
    This lecture covers asynchronous sequences in C#: IAsyncEnumerable<T>, iteration with await foreach, cancellation with CancellationToken and the attribute [ EnumeratorCancellation]. We'll talk about asynchronous resource disposal with IAsyncDisposable and await using, when it's needed and how to use it in practice (reading large files, streaming from the network, server APIs). Everything with examples and usage nuances.
    Open
  • Synchronous and asynchronous generators in C# ( yield)

    C# SELF
    62 level,1 lecture
    In this lecture you'll learn how to produce data lazily and safely in C# using generators based on yield: what yield return and yield break are, how the compiler builds a state machine for IEnumerable<T>/ IEnumerator<T>, where generators are used in practice, and how to work with asynchronous streams via IAsyncEnumerable<T>, await foreach, await using, IAsyncDisposable and CancellationToken. Plus — limitations, pitfalls and tips for effective use.
    Open
  • Performance optimization: ValueTask

    C# SELF
    62 level,2 lecture
    In this lecture we'll break down how the ValueTask struct helps reduce allocations in asynchronous APIs where the result is often available immediately. We'll compare it with Task, discuss when to use it, gotchas (for example, repeated await), conversion via AsTask() and real-world cache scenarios. You'll learn when to stick with the usual Task and when it's worth using ValueTask.
    Open
  • Channel: producer–consumer ( Channel)

    C# SELF
    62 level,3 lecture
    In this lecture you'll get to know asynchronous channels Channel for implementing the Producer–Consumer pattern: we'll figure out how channels differ from BlockingCollection<T> and ConcurrentQueue<T>, learn to use WriteAsync, ReadAsync and ReadAllAsync, create unbounded and bounded pipelines, configure options and discuss common pitfalls when closing with Complete().
    Open
  • Interaction of asynchronous and synchronous code

    C# SELF
    62 level,4 lecture
    In this lecture we go over how to safely mix asynchronous and synchronous code in C#: why await "breaks" a method, how SynchronizationContext and TaskScheduler work, when it's appropriate to use ConfigureAwait(false), and where deadlock’s come from when using .Result/ .Wait(). We'll show practical patterns, rules and common mistakes so your UI stays responsive and your server stays performant.
    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