All fields

“Async Iterators & Streams” in Information Technology

20 questions across 3 technologies.

Information Technology

20 questions in 3 technologies

#QuestionTechnologyTopicLevel
1Why might Promise.all() be the wrong tool when consuming many async iterators? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsAdvanced
2How do you run multiple async iterators concurrently and merge their results? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsAdvanced
3What is an async iterator? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsBeginner
4How do you loop over an async iterable? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsBeginner
5How do you write an async generator function? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsIntermediate
6What does return() do on an async iterator? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsIntermediate
7How do you convert a Node.js Readable stream into an async iterable? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsAdvanced
8What's the difference between piping streams with pipeThrough() and pipeTo()? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsAdvanced
9How do you add a timeout to an async iterator's next() call? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsAdvanced
10What is the ReadableStream API used for? JavaScript › Async Iterators & StreamsJavaScriptAsync Iterators & StreamsIntermediate
11What are async streams in C#, and how does IAsyncEnumerable<T> differ from a regular IEnumerable<T> for handling large or slow data sources? C# › Asynchronous ProgrammingC#Asynchronous ProgrammingIntermediate
12What is an async generator, and how does 'for await...of' let you consume asynchronously produced data? Node.js › Async PatternsNode.jsAsync PatternsAdvanced
13Can you use a for...of loop directly on a generator's return value? JavaScript › Iterators & GeneratorsJavaScriptIterators & GeneratorsBeginner
14How do you implement an infinite sequence using a generator, and why is this safe? JavaScript › Iterators & GeneratorsJavaScriptIterators & GeneratorsIntermediate
15What does the finally block do? JavaScript › Error HandlingJavaScriptError HandlingBeginner
16How does Jest's mocking help isolate the code under test? JavaScript › Debugging, Testing & ToolingJavaScriptDebugging, Testing & ToolingIntermediate
17How does the event loop decide what to run next? JavaScript › Event Loop & ConcurrencyJavaScriptEvent Loop & ConcurrencyIntermediate
18How do you cancel an in-flight fetch() request? JavaScript › Networking: Fetch, XHR, WebSockets & CORSJavaScriptNetworking: Fetch, XHR, WebSockets & CORSIntermediate
19How would you stream-parse a very large JSON file without loading it entirely into memory? JavaScript › JSON & Data SerializationJavaScriptJSON & Data SerializationAdvanced
20How do Server-Sent Events (SSE) differ from WebSockets, and when would you choose them? JavaScript › Networking: Fetch, XHR, WebSockets & CORSJavaScriptNetworking: Fetch, XHR, WebSockets & CORSAdvanced