async-button
Press it with the keyboard: Tab to focus, Enter or Space to press. Press it twice while it works: the second press is ignored. Past 1.2 s it says so instead of spinning forever.
State
- idle
- pending
- slow
- success
- error
Legal from here: PRESS
Transitions
| from | event | to |
|---|---|---|
| idle | PRESS | pending |
| pending | SLOW | slow |
| pending | RESOLVE | success |
| pending | REJECT | error |
| slow | RESOLVE | success |
| slow | REJECT | error |
| success | RESET | idle |
| success | PRESS | pending |
| error | PRESS | pending |
| error | RESET | idle |
What just happened
Nothing yet. Press the button.