• Paul Slaughter's avatar
    Update simple_poll with timeout 0 and object arg · 8c4d6ea2
    Paul Slaughter authored
    **Why timeout 0?**
    Sometimes we want to poll without timing out.
    
    **Why an object argument?**
    It's helpful to pass these extra properties by name.
    `simplePoll(cb, { timeout: 0 })` is nicer than
    `simplePoll(cb, undefined, 0);`
    8c4d6ea2
simple_poll.js 476 Bytes