Commit Graph

14 Commits (dc1690029d807c815be87f0f94de383decef52b0)

Author SHA1 Message Date
Matthew Wild 9b5c6c4d9d Many things: switch from hacky multi-arg xpcall implementations to a standard util.xpcall 7 years ago
Matthew Wild 387c3e9cef util.promise: Switch from pcall to xpcall to get tracebacks on exceptions 7 years ago
Matthew Wild 97ae9b843d util.promise: Remove the non-standard ability to pass a promise to reject() 7 years ago
Matthew Wild dd74a38b22 util.promise: Fix missing parameters 7 years ago
Matthew Wild e7a26ebc24 util.promise: Ensure chained promises always receive a value/rejection even if an intermediate promise has no handlers 7 years ago
Matthew Wild ef2ab23700 util.promise: Export is_promise() 7 years ago
Matthew Wild fbe4c45052 util.promise: Remove debug print and assert 7 years ago
Matthew Wild d18c2d6c65 util.promise: Add promise.try() 7 years ago
Kim Alvefur 6f0d589813 util.promise: Add a string representation 7 years ago
Matthew Wild cdd7a0fbf8 util.promise: Add promise:finally() 7 years ago
Matthew Wild a66d4a2f82 util.promise: Some code relocation 7 years ago
Matthew Wild 767997a53a util.promise: Also support automatic resolution by returning a promise from an on_reject handler 7 years ago
Matthew Wild 90b256a19d util.promise: Fix promise.reject() to return a rejected promise, and fix buggy test for it 7 years ago
Matthew Wild d3496d3be0 util.promise: ES6-like API for promises 7 years ago