Skip to content
Sharp

Reactive Streams · interview question

In Reactive Streams, which method is used by the Publisher to signal the completion of data emission to the Subscriber?

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

Correct answer

D. OnComplete()

Why

The onComplete() method is called by the Publisher to signal that it has finished sending all the data to the Subscriber. This is part of the standard methods defined in the Reactive Streams specification.

Test yourself on Reactive Streams

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

Start free test
All Reactive Streams questions →