Log

util/promise.lua @ 11393:e6122e6a40a0

description author age
Merge 0.11->trunk Matthew Wild 2020-11-23
util.promise: Use xpcall() for promise function to preserve tracebacks 0.11 Matthew Wild 2020-11-23
util.promise: Add all_settled, which follows semantics of allSettled from ES2020 Matthew Wild 2020-06-08
util.promise: Remove references to callbacks after settling promise Kim Alvefur 2018-12-30
Many things: switch from hacky multi-arg xpcall implementations to a standard util.xpcall Matthew Wild 2018-10-26
util.promise: Switch from pcall to xpcall to get tracebacks on exceptions Matthew Wild 2018-10-26
util.promise: Remove the non-standard ability to pass a promise to reject() Matthew Wild 2018-10-26
util.promise: Fix missing parameters Matthew Wild 2018-10-25
util.promise: Ensure chained promises always receive a value/rejection even if an intermediate promise has no handlers Matthew Wild 2018-10-25
util.promise: Export is_promise() Matthew Wild 2018-10-25
util.promise: Remove debug print and assert Matthew Wild 2018-10-25
util.promise: Add promise.try() Matthew Wild 2018-10-18
util.promise: Add a string representation Kim Alvefur 2018-10-18
util.promise: Add promise:finally() Matthew Wild 2018-10-18
util.promise: Some code relocation Matthew Wild 2018-10-18
util.promise: Also support automatic resolution by returning a promise from an on_reject handler Matthew Wild 2018-10-18
util.promise: Fix promise.reject() to return a rejected promise, and fix buggy test for it Matthew Wild 2018-10-18
util.promise: ES6-like API for promises Matthew Wild 2018-10-10