Commit Graph

16 Commits (020cd46f0341663d71ebdbd02f67032ddcb4a677)

Author SHA1 Message Date
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