Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. let behavior = RepeatBehavior.exponentialDelayed(maxCount: 5, initial: 1, multiplier: 0.5)
  2.  
  3. behavior.calculateConditions(1).delay // milliseconds(1000)
  4. behavior.calculateConditions(2).delay // milliseconds(1500)
  5. behavior.calculateConditions(3).delay // milliseconds(2250)
  6. behavior.calculateConditions(4).delay // milliseconds(3375)
  7. behavior.calculateConditions(5).delay // milliseconds(5062)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement