@arthurmed So what are the properties of the pulses to receive, and what kind of device is it that you want to connect?
Edit: I just tested that: Even if you specify then number of pulses, it will not return until a timeout happens (and the documentation is still wrong, because pulses_get() does not accept any arguments).