Return up to 2000 events from poll/waitForEvent.