Implementation of pollLatest.