The button has been pushed 0 times!

1000 (delay, in milliseconds)

1 (step size)

The code


    outer
      $time 1000
      $step 1

      @time-in  dom-on-change
      @time-out dom-set-text
      @time-in -> {__ | >$time} -> @time-out

      @step-in  dom-on-change
      @step-out dom-set-text
      @step-in -> {__ | >$step} -> @step-out

      @counter dom-set-text
      @button  dom-on-submit

      inc    {__ | add $count | >$count}
      block  {$count | then "" else "{1 | >@start}" | run with 1}

      @button -> block
      block.start -> inc -> @counter
      inc -> {process sleep for $time | $step} -> inc

  

The spacial structure


    _____________________________________________________________
    |                                                           |
    |                                                           |
    |             ______________________________                |
    |            /                              \               |
    o-----------(  {__ | add $count | >$count}   )--------------o
    |     |      \______________________________/      |        |
    |     ^                                            v        |
    |     ^                                            v        |
    |     |    ___________________________________     |        |
    |     |   /                                   \    |        |
    |     |--(  {process sleep for $time | $step}  )---|        |
    |         \___________________________________/             |
    |                                                           |
    |                                                           |
    |                   _________________                       |
    |                  /                 \                      |
    o-----------------(  {__ | >$time}    )---------------------o
    |                  \_________________/                      |
    |                   _________________                       |
    |                  /                 \                      |
    o-----------------(  {__ | >$step}    )---------------------o
    |                  \_________________/                      |
    |___________________________________________________________|