Christian Rocha
cc9a727028
fix(timer): restore 1s default interval
2024-10-31 15:58:35 -04:00
Christian Rocha
c560f6a021
feat!(timer): add WithInterval(duration) option, drop NewWithInterval()
...
This also adds an Option type for arguments to New()
2024-10-31 15:02:05 -04:00
Ayman Bagabas
287c9c4ffd
chore: merge branch 'master' into v2-exp
2024-10-21 14:16:22 -04:00
9a262e9b0f
fix: use atomic for ids ( #634 )
...
closes #622
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
Co-authored-by: Ville Valkonen <weezel@users.noreply.github.com >
2024-10-07 15:26:12 -03:00
Ayman Bagabas
0fdf5f5be5
feat: use bubbletea/v2
2024-09-18 14:09:58 -04:00
Ayman Bagabas
8972b56c9d
feat!: make Init return the model
2024-09-10 14:04:36 -04:00
Glenn Gonda and Christian Rocha
3d3ed883d3
docs: fix typos and improve comment clarity
2023-02-16 17:49:32 -05:00
Pablo Díaz-López and GitHub
4c1762413a
fix(timer): stop should return cmd ( #138 )
2022-07-01 10:36:12 -04:00
Christian Rocha and GitHub
f09987549a
Various timer improvements ( #83 )
...
* Add IDs to timers
* Add IDs to timer-related messages
* Ignore messages from other timers
* Add `Timeout` property to `TickMsg`
* Add `Start()`, `Stop()`, and `Toggle()` commands to timer
* Add `Timedout()` method to timer model
* Add `Running()` method to timer model
2022-01-10 13:55:54 -05:00
Carlos Alexandro Becker and GitHub
7941c49504
feat: simple timer component ( #67 )
...
* feat: simple timer component
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com >
2021-09-09 15:17:33 -04:00