Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.promise: Fix test | Kim Alvefur | 2021-11-26 | 1 | -1/+1 |
| | | | | | Could not reproduce locally but it complained in CI that > spec/util_promise_spec.lua:676: Cannot spy on type 'nil', only on functions or callable elements | ||||
* | util.promise: Support delayed promise execution | Kim Alvefur | 2019-01-05 | 1 | -0/+14 |
| | |||||
* | Fix various spelling errors (thanks codespell) | Kim Alvefur | 2021-07-27 | 1 | -1/+1 |
| | | | | | Also special thanks to timeless, for wordlessly reminding me to check for typos. | ||||
* | util.promise: Switch order of parameters to join() | Matthew Wild | 2021-03-25 | 1 | -2/+2 |
| | | | | | This saves awkward fiddlery with varargs and also echoes the signature of pcall/xpcall. | ||||
* | util.promise: all()/all_settled() pass through non-promise values | Matthew Wild | 2021-03-25 | 1 | -0/+33 |
| | |||||
* | util.promise: Add join() convenience method | Matthew Wild | 2021-03-25 | 1 | -0/+26 |
| | | | | | | Usage: promise.join(p1, p2, function (result1, result2) [...] end) | ||||
* | util.promise: Add support for arbitrary keys in all()/all_settled() | Matthew Wild | 2021-03-25 | 1 | -0/+37 |
| | |||||
* | util.promise: Add all_settled, which follows semantics of allSettled from ES2020 | Matthew Wild | 2020-06-08 | 1 | -0/+54 |
| | |||||
* | util.promise: Add some additional tests to cover callback return values | Matthew Wild | 2019-09-30 | 1 | -0/+24 |
| | |||||
* | util.promise: Add tests ensuring returning a promise resolves the current ↵ | Matthew Wild | 2018-10-26 | 1 | -0/+49 |
| | | | | promise with that promise | ||||
* | util.promise tests: Fix declared but unused variables | Matthew Wild | 2018-10-25 | 1 | -2/+2 |
| | |||||
* | util.promise: Fix missing parameters | Matthew Wild | 2018-10-25 | 1 | -2/+28 |
| | |||||
* | util.promise: Ensure chained promises always receive a value/rejection even ↵ | Matthew Wild | 2018-10-25 | 1 | -0/+37 |
| | | | | if an intermediate promise has no handlers | ||||
* | util.promise: Add promise.try() | Matthew Wild | 2018-10-18 | 1 | -0/+51 |
| | |||||
* | util.promise: Add promise:finally() | Matthew Wild | 2018-10-18 | 1 | -0/+67 |
| | |||||
* | util.promise: Add additional test for promise.reject() | Matthew Wild | 2018-10-18 | 1 | -0/+6 |
| | |||||
* | util.promise: Fix promise.reject() to return a rejected promise, and fix ↵ | Matthew Wild | 2018-10-18 | 1 | -1/+1 |
| | | | | buggy test for it | ||||
* | util.promise tests: Fix luacheck warnings | Matthew Wild | 2018-10-10 | 1 | -7/+6 |
| | |||||
* | util.promise: ES6-like API for promises | Matthew Wild | 2018-10-10 | 1 | -0/+262 |