Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | compat: Remove handling of Lua 5.1 location of 'unpack' function | Kim Alvefur | 2022-07-11 | 1 | -1/+1 |
| | |||||
* | util.promise: Support delayed promise execution | Kim Alvefur | 2019-01-05 | 1 | -5/+12 |
| | |||||
* | util.promise: Switch order of parameters to join() | Matthew Wild | 2021-03-25 | 1 | -4/+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 | -22/+30 |
| | |||||
* | util.promise: Add join() convenience method | Matthew Wild | 2021-03-25 | 1 | -0/+11 |
| | | | | | | 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 | -15/+27 |
| | |||||
* | Merge 0.11->trunk | Matthew Wild | 2020-11-23 | 1 | -1/+1 |
|\ | |||||
| * | util.promise: Use xpcall() for promise function to preserve tracebacks | Matthew Wild | 2020-11-23 | 1 | -1/+1 |
| | | |||||
* | | util.promise: Add all_settled, which follows semantics of allSettled from ES2020 | Matthew Wild | 2020-06-08 | 1 | -0/+22 |
| | | |||||
* | | util.promise: Remove references to callbacks after settling promise | Kim Alvefur | 2018-12-30 | 1 | -0/+3 |
|/ | | | | This is to help the garbage collector. | ||||
* | Many things: switch from hacky multi-arg xpcall implementations to a ↵ | Matthew Wild | 2018-10-26 | 1 | -0/+2 |
| | | | | standard util.xpcall | ||||
* | util.promise: Switch from pcall to xpcall to get tracebacks on exceptions | Matthew Wild | 2018-10-26 | 1 | -1/+1 |
| | |||||
* | util.promise: Remove the non-standard ability to pass a promise to reject() | Matthew Wild | 2018-10-26 | 1 | -3/+1 |
| | |||||
* | util.promise: Fix missing parameters | Matthew Wild | 2018-10-25 | 1 | -2/+2 |
| | |||||
* | util.promise: Ensure chained promises always receive a value/rejection even ↵ | Matthew Wild | 2018-10-25 | 1 | -22/+23 |
| | | | | if an intermediate promise has no handlers | ||||
* | util.promise: Export is_promise() | Matthew Wild | 2018-10-25 | 1 | -0/+1 |
| | |||||
* | util.promise: Remove debug print and assert | Matthew Wild | 2018-10-25 | 1 | -1/+0 |
| | |||||
* | util.promise: Add promise.try() | Matthew Wild | 2018-10-18 | 1 | -0/+6 |
| | |||||
* | util.promise: Add a string representation | Kim Alvefur | 2018-10-18 | 1 | -0/+4 |
| | |||||
* | util.promise: Add promise:finally() | Matthew Wild | 2018-10-18 | 1 | -0/+6 |
| | |||||
* | util.promise: Some code relocation | Matthew Wild | 2018-10-18 | 1 | -23/+23 |
| | |||||
* | util.promise: Also support automatic resolution by returning a promise from ↵ | Matthew Wild | 2018-10-18 | 1 | -1/+3 |
| | | | | | | | an on_reject handler Originally unimplemented because it wasn't clear to me what the correct behaviour was, but the A+ spec is clear that both onFulfilled and onRejected may return a promise. | ||||
* | 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: ES6-like API for promises | Matthew Wild | 2018-10-10 | 1 | -0/+133 |