26 Commits

Author SHA1 Message Date
Nathan Baulch
f5aac81cc0 lint: enable gofumpt extra rules (#690)
Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2025-09-26 13:32:59 +02:00
Nathan Baulch
1b92b5c7db lint: enable 7 more linters (#686)
* lint: enable and fix perfsprint issues

* lint: enable and fix nolintlint issues

* lint: enable and fix godot issues

* lint: enable and fix thelper issues

* lint: enable and fix tparallel issues

* lint: enable and fix paralleltest issues

* lint: enable and fix predeclared issues
2025-09-25 13:18:25 +02:00
Nathan Baulch
3210326df6 chore: minor whitespace fixes (#677)
* lint: pin golangci-lint version

* chore: minor whitespace fixes

* lint: enable whitespace linter

* Apply suggestions from code review

---------

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2025-09-24 22:48:54 +02:00
Nathan Baulch
3e11f11781 docs: grammar improvements (#673)
* lint: pin golangci-lint version

* docs: grammar fixes

* docs: remove "truthy" terminology

* docs: remove "array" terminology

* docs: grammar fixes

* Update .github/workflows/lint.yml

---------

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2025-09-24 20:59:41 +02:00
Samuel Berthe
3bc887c57c doc: adding go playground examples 2025-09-23 14:54:30 +02:00
Samuel Berthe
0906f969ae fix(retry): fix potential race condition in debounce callback (#650)
* fix(retry): fix potential race condition in debounce callback

* fix previous commit: make it compatible with old go version
2025-07-06 18:17:27 +02:00
Samuel Berthe
5cd32660f6 feat: adding ExampleNewThrottleBy and ExampleNewThrottleByWithCount 2025-01-26 22:47:39 +01:00
minjea.lee
27638ea5b7 feat: adding NewThrottle (#396) 2025-01-26 19:59:39 +01:00
Nathan Baulch
db0f4d2171 Tidy up (#519) 2024-08-22 01:17:02 +02:00
Samuel Berthe
61209816d1 feat: speed up loops by reducing allocations (#475) 2024-06-28 01:35:57 +02:00
Viktor Szépe
d8598ea01e Fix typos (#384) 2023-12-20 00:43:37 +01:00
Samuel Berthe
443de35ee3 feat: adding DebounceBy (#329) 2023-03-20 15:12:54 +01:00
Samuel Berthe
6438444f7d adding Transaction 2022-12-12 01:17:03 +01:00
Ayaka Neko
23ae73bfce feat: adding AttemptWhile and AttemptWhileWithDelay (#183)
* feat: adding HaltingAttempt and HaltingAttemptWithDelay

* chore: re-implement it as AttemptWhile and AttemptWhileWithDelay
2022-11-28 11:27:59 +01:00
Samuel Berthe
7887963db8 feat: name each callback/iteratee/predicate arguments in order to improve autocompletion
closes #242
2022-10-13 22:25:33 +02:00
Samuel Berthe
c6b8b1e628 doc: adding examples 2022-10-06 22:46:47 +02:00
Ryan Russell
451ea04fa4 chore(readability): Fix typos in docs and retry.go (#153)
Signed-off-by: Ryan Russell <git@ryanrussell.org>
2022-07-03 19:37:30 +02:00
Samuel Berthe
05d69d760e chore(ci): upgrade go version 2022-05-24 17:30:35 +02:00
Samuel Berthe
161f924e17 feat: adding AttemptWithDelay 2022-04-26 12:00:53 +02:00
Samuel Berthe
9abdcd40ea feat(debounce): add doc + accept multiple callback functions 2022-03-20 01:46:33 +01:00
xuzhiwei
ecdd8512f4 Make Debounce Lodash style 2022-03-14 17:28:13 +08:00
xuzhiwei
d12d43442e Make Debounce thread safe 2022-03-12 12:46:59 +08:00
xuzhiwei
046457ebbd Add Cancel of Debounce, Update README.md and test cases 2022-03-12 10:33:26 +08:00
xuzhiwei
33bb4cea02 Add Debounce 2022-03-11 14:04:49 +08:00
Samuel Berthe
98ecdea940 adding Sample+Samples 2022-03-05 23:13:18 +01:00
Samuel Berthe
2d3ea84ba6 feat: adding attempt + repeat + times 2022-03-05 21:24:37 +01:00