Combine interview questions

Publishers, operators and subscribers, cancellation, timing operators, errors, testing, and when to pick async/await instead.

3 quick facts

– 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

  1. What Combine is forPick the fix
  2. Publishers, operators and subscribersOrder the steps
  3. AnyCancellable and subscription lifetimeSpot the bug
  4. debounce vs throttlePredict
  5. combineLatestPredict
  6. merge vs zipPredict
  7. Error handling in CombinePredict
  8. eraseToAnyPublisherPick the fix
  1. PassthroughSubject vs CurrentValueSubjectPick the fix
  2. Testing Combine publishersPick the fix
  3. Combine vs async/awaitPick the fix
  4. Preventing stale search resultsSpot the bug

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.