Commit Graph

88 Commits

Author SHA1 Message Date
David Sherret
ef6b95f0c7
refactor: make the code work under verbatimModuleSyntax (#4406)
* Start

* Update

* Format

* Revert deno.json change

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-02-27 21:57:25 +00:00
Hajime-san
897b86d99c
docs(async): use Array.fromAsync() in debounce() example (#4283)
* docs(async): `debounce` example replace with `Array.fromAsync`

* Update async/debounce.ts

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-02-07 16:04:31 +11:00
Asher Gomez
845a6f8d97
refactor: use granular --unstable-* CLI flags (#4232)
* refactor: use granular `--unstable-*` CLI flags

* tweak
2024-01-25 07:48:48 +11:00
Tatsuya Kyushima
8098813154
docs(async): fix doc of retry.ts (#4130) 2024-01-08 22:34:09 +09:00
Simon Holloway
8eb433b5d3
refactor(async): prepare for noUncheckedIndexedAccess (#4118)
* refactor(async): prepare for noUncheckedIndexedAccess

* revert(data_structures): the data_structures refactor since its not in scope for this PR
2024-01-06 08:36:10 +11:00
Lino Le Van
c46143f0ac
chore: update copyright year (#4046)
* chore: update copyright year

* fix

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-02 08:11:32 +11:00
Tim Reichen
83fe26f36d
refactor(async): format test names (#3985)
* initial commit

* Update async/pool_test.ts

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* update test names

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-12-19 09:29:13 +11:00
Simon Holloway
f712403cb1
feat(testing): enable the using keyword on FakeTime() (#3961)
* feat(testing): enable the "using" keyword on FakeTime

* chore(testing): update all tests with using FakeTime

* chore(testing): formatting fix
2023-12-15 07:47:50 +11:00
YieldRay
bcc6f3b679
perf(async): remove event listener ASAP in abortablePromise() and abortableAsyncIterable() (#3909)
perf(async): improve abortablePromise() and abortableAsyncIterable()
2023-12-08 08:36:52 +11:00
Asher Gomez
fb40a35b13
chore(async): exponentialBackoffWithJitter() tweaks (#3891) 2023-12-04 15:42:01 +11:00
Asher Gomez
e9b2ea321a
chore(async): complete documentation (#3887)
* chore(async): complete documentation

* Update mux_async_iterator.ts

Co-authored-by: Luca Casonato <hello@lcas.dev>

* Update mux_async_iterator.ts

Co-authored-by: Luca Casonato <hello@lcas.dev>

* Update mux_async_iterator.ts

Co-authored-by: Luca Casonato <hello@lcas.dev>

* tweaks

---------

Co-authored-by: Luca Casonato <hello@lcas.dev>
2023-12-01 13:19:22 +11:00
Asher Gomez
d7f3d8cc2c
BREAKING(async): remove deprecated deferred() (#3852) 2023-11-24 19:11:32 +11:00
Asher Gomez
56e2bc10e0
chore: use Array.fromAsync() where possible (#3788) 2023-11-11 06:00:28 +11:00
Asher Gomez
88477d1117
refactor: remove use of deferred() (#3786)
* refactor: remove use of `deferred()`

* fix

* fix
2023-11-10 14:31:16 +11:00
Lino Le Van
7e6a91f012
BREAKING(async): deprecate deferred() in favor of Promise.withResolvers() (#3758)
* BREAKING(async): Deprecate deferred in favor of Promise.withResolvers

* address luca's comment

* Apply suggestions from code review

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* Apply suggestions from code review

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* Apply suggestions from code review

* correction

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-11-10 11:29:11 +11:00
Lino Le Van
a3ddd3546b
chore(async): remove _exponentialBackoffWithJitter from public file (#3720) 2023-10-25 14:06:35 +09:00
Yoshiya Hinosawa
dcae889194
chore(async): remove unused file (#3592) 2023-09-01 16:40:10 +09:00
Lino Le Van
2b5d71224f
refactor: cleanup usage of double equals (#3566)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-08-25 18:04:43 +09:00
Jesse Jackson
82c63fc1f6
fix(async/delay): reject with existing AbortSignal reason (#3479) 2023-07-14 14:03:05 +09:00
Asher Gomez
239e85ad6a
BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
Martin Fischer
a5b1d80736
chore: fix typos (#3458)
The typos were found with the typos[1] spell checker.  That spell
checker will be incorporated into the CI in a followup PR.

[1]: https://github.com/crate-ci/typos
2023-06-22 01:27:37 +09:00
Bodo Graumann
3a17ebde3c
docs(async/retry): consistently talk about attempts (#3434) 2023-06-10 19:01:46 +09:00
Bodo Graumann
edf2e5498f
feat(async/retry): introduce jitter option and fix retry bugs (#3427) 2023-06-07 19:46:00 +09:00
lionel-rowe
9daac3277a
feat(async): add jitter to retry exponential backoff (#3379) 2023-05-20 21:14:18 +09:00
Λlisue (Ali sue・ありすえ)
264c7144b1
feat(async): support signal on deadline() (#3347) 2023-05-02 15:04:26 +09:00
Jesse Jackson
c5dbe0747b
feat(async/pool): use browser compatible APIs (#3350)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-05-02 14:48:33 +09:00
Asher Gomez
cf14c9b212
chore(tools): improved web-compatibility checks (#3263) 2023-03-18 21:36:00 +09:00
Kenta Moriuchi
74fd287286
docs(async): add note to deadline (#3148) 2023-02-03 12:30:37 +09:00
ayame113
b4239898d6
chore: update copyright header (#3082) 2023-01-03 19:47:44 +09:00
Lino Le Van
13a38ecc20
feat(async): retry (#2929) 2022-11-30 13:45:25 -05:00
Leo Kettmeir
aba5017d43
docs: reorganize docs (#2658) 2022-11-25 12:40:23 +01:00
ayame113
e6189c08e9
docs: Using absolute paths in jsdoc import statements (#2762) 2022-10-10 10:05:56 -04:00
Asher Gomez
27d470532e
fix(async): restore delay browser compatibility (#2625) 2022-09-07 20:19:59 +09:00
Asher Gomez
e0e851053a
chore: remove _deno_unstable.ts (#2600) 2022-09-05 13:55:53 +09:00
Asher Gomez
3b9fb39ddd
chore: remove void and Promise<void> return types (#2550) 2022-08-24 10:21:57 +09:00
Asher Gomez
d7cd0080b8
feat(async/delay): add persistent option (#2527) 2022-08-22 22:09:53 +09:00
Kitson Kelly
e83306672e
docs: improve module documentation (#2511) 2022-08-11 21:51:20 +10:00
Bartek Iwańczuk
a06298b0b5
chore: Update top level module JSDocs (#2343)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-06-14 11:20:56 +02:00
Matthew Leon
3c129122f1
test(async): use generic assertRejects in pool_test.ts (#2287)
Fixes a deprecation warning. Resolves https://github.com/denoland/deno_std/issues/2283
2022-05-30 19:21:28 +09:00
Matthew Leon
87883364ab
docs(async): use top-level await in tee docs (#2280) 2022-05-28 21:05:03 +09:00
Mark Ladyshau
1bba810b48
refactor: replace TS private with private identifiers (#2272) 2022-05-27 21:27:13 +09:00
Tim Reichen
6dcb19b003
chore: replace console.log with array and assertEquals (#2261) 2022-05-22 16:18:10 +02:00
Thomas Cruveilher
215139c170
fix(async/pooledMap): return ordered result (#2239)
closes #2236
2022-05-19 14:05:49 +09:00
Kitson Kelly
00463cba18
docs: improve module JSDoc for archive, async, bytes (#2162) 2022-04-28 14:08:08 +10:00
Yoshiya Hinosawa
a158cbbde4
feat(async): expose asyncPromise and asyncAsyncIterable (#2034) 2022-03-17 14:09:32 +09:00
Yoshiya Hinosawa
2ec5e07a49
docs: fix doc testing errors (#2012) 2022-03-09 01:13:45 +09:00
Yoshiya Hinosawa
b81ff8e06a
fix(async): re-export abortable in mod.ts (#1959) 2022-03-08 14:46:45 +09:00
Jesse Jackson
4e8f0e7bb8
feat(testing/asserts): use assertion signature for "assertStrictEquals" (#1984) 2022-03-04 14:31:19 +09:00
Jesse Jackson
58204e6f56
refactor: mark modules as browser compatible (#1972) 2022-03-01 13:25:50 +09:00
Alisue
5e8adcbfc4
feat(async): add abortable to async module. (#1939) 2022-02-21 13:51:39 +09:00