Log

util/promise.lua @ 12239:578ce0415398

description author age
util.promise: Support delayed promise execution Kim Alvefur 2019-01-05
util.promise: Switch order of parameters to join() Matthew Wild 2021-03-25
util.promise: all()/all_settled() pass through non-promise values Matthew Wild 2021-03-25
util.promise: Add join() convenience method Matthew Wild 2021-03-25
util.promise: Add support for arbitrary keys in all()/all_settled() Matthew Wild 2021-03-25
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