Combine interview questions
Publishers, operators and subscribers, cancellation, timing operators, errors, testing, and when to pick async/await instead.
– interview-ready · 12 questions in this topic
– of 12 tried
Saved on this device. Interview-ready means you got it right on two different days. Guesses and hints count for less.
Questions
Practise this topic
Flashcards · 15
Flip, then say if you knew it. Needs JavaScript; every answer is also on its question page.
Quick quiz · 12 questions
One exercise per question, checked as you go. Needs JavaScript.
Mock interview · 2 sets
Timed, out loud, then tick what you covered. Needs JavaScript.
Fix this PR · 2 reviews
Review a diff like a senior: flag the lines you'd comment on. Needs JavaScript.
Quick facts
Recall the answer first, then tap Show to check.
@Published
Emits in willSet, so reading the property inside the sink gives the old value; use the value passed to the sink.
Future
Runs its closure once, immediately on creation, and replays the single result. Wrap in Deferred to run on subscription.
receive(on:) vs subscribe(on:)
receive(on:) moves downstream delivery; subscribe(on:) moves subscription and upstream work.
Printable cheat sheet · Review your weak spots in this topic