event poll interface example