onPollResult

Sets the callback when a poll is made.

Return

The Builder instance.

Parameters

block

The lambda function to call when a poll is made.