Allow backend-optimized stateful pollers and implement one with cython