@likcheung/shared

v0.0.1-alpha

Published

licheung shared

Downloads

189

Readme

Polling

for polling

args

PollFunction

function, U can use the options.successCondition or options.failureCondition check the return value

PollOptions

polling configure, object

property

  • interval the interval of polling
  • timeout the time limit of polling
  • maxAttempts maximum of attemptes times
  • successCondition check the pollFun return
  • failureCondition check the pollFun return
  • onInterval callback of every polling

example