Log

util/promise.lua @ 10861:e12690a37795

description author age
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