Skip to content
Sharp

Reactive Streams · interview question

Which method in a Subscriber handles the completion signal from a Publisher?

Multiple choiceMediumchapter-19-curatedpremiumreactive-streamspublisher-and-subscriber
Choose one answer
Answer and explanation

Correct answer

D. OnComplete()

Why

The onComplete() method in a Subscriber is called by the Publisher to indicate that all data has been successfully sent and no more data will be emitted.

Test yourself on Reactive Streams

A free test with instant, explained results. No account needed.

Start free test
All Reactive Streams questions →