Commit Graph

27 Commits (ea2f97e9ed8317dc9a62e45d9a807dca7e3700a5)

Author SHA1 Message Date
Kim Alvefur 43531740f9 util: Prefix module imports with prosody namespace 3 years ago
Matthew Wild a79238fb37 util.promise: Remove line that was supposed to be removed in eb9814372c54 3 years ago
Matthew Wild aed0c1c5ab util.promise: Remove some redundant checks, add tests confirming redundancy 3 years ago
Kim Alvefur 5251c9b686 compat: Remove handling of Lua 5.1 location of 'unpack' function 4 years ago
Matthew Wild a247cea4df util.promise: Use xpcall() for promise function to preserve tracebacks 5 years ago
Kim Alvefur a35dd91a12 util.promise: Support delayed promise execution 7 years ago
Matthew Wild d1ccd87d55 util.promise: Switch order of parameters to join() 5 years ago
Matthew Wild fec0d44e89 util.promise: all()/all_settled() pass through non-promise values 5 years ago
Matthew Wild 2141d9d94a util.promise: Add join() convenience method 5 years ago
Matthew Wild 3952fae8ce util.promise: Add support for arbitrary keys in all()/all_settled() 5 years ago
Matthew Wild 9e0186b0ed util.promise: Add all_settled, which follows semantics of allSettled from ES2020 6 years ago
Matthew Wild f5f6460b2e Many things: switch from hacky multi-arg xpcall implementations to a standard util.xpcall 7 years ago
Matthew Wild 6990069677 util.promise: Switch from pcall to xpcall to get tracebacks on exceptions 7 years ago
Matthew Wild 8ea77fc0ec util.promise: Remove the non-standard ability to pass a promise to reject() 7 years ago
Matthew Wild e6ff6e333c util.promise: Fix missing parameters 7 years ago
Matthew Wild b74a643e34 util.promise: Ensure chained promises always receive a value/rejection even if an intermediate promise has no handlers 7 years ago
Matthew Wild c7d9ee0bb8 util.promise: Export is_promise() 7 years ago
Matthew Wild 5d8613b3c1 util.promise: Remove debug print and assert 7 years ago
Matthew Wild 05b4064188 util.promise: Add promise.try() 7 years ago
Kim Alvefur dd2f749996 util.promise: Add a string representation 7 years ago
Matthew Wild 681b25e427 util.promise: Add promise:finally() 7 years ago
Matthew Wild 894fe1b808 util.promise: Some code relocation 7 years ago
Matthew Wild 7bcf751702 util.promise: Also support automatic resolution by returning a promise from an on_reject handler 7 years ago
Matthew Wild ef7d6ba99e util.promise: Fix promise.reject() to return a rejected promise, and fix buggy test for it 7 years ago
Matthew Wild e557cfb012 util.promise: ES6-like API for promises 7 years ago
Kim Alvefur 2d28fb93b4 util.promise: Remove references to callbacks after settling promise 7 years ago