<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://hg.omfa.de/prosody-hg/</link>
    <language>en-us</language>

    <title>prosody-hg: util/promise.lua history</title>
    <description>util/promise.lua revision history</description>
    <item>
    <title>util: Prefix module imports with prosody namespace</title>
    <link>http://hg.omfa.de/prosody-hg/log/d10957394a3c/util/promise.lua</link>
    <description><![CDATA[util: Prefix module imports with prosody namespace]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Fri, 17 Mar 2023 16:23:16 +0100</pubDate>
</item>
<item>
    <title>util.promise: Remove line that was supposed to be removed in eb9814372c54</title>
    <link>http://hg.omfa.de/prosody-hg/log/c882d2460bb1/util/promise.lua</link>
    <description><![CDATA[util.promise: Remove line that was supposed to be removed in eb9814372c54]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Fri, 07 Oct 2022 17:45:23 +0100</pubDate>
</item>
<item>
    <title>util.promise: Remove some redundant checks, add tests confirming redundancy</title>
    <link>http://hg.omfa.de/prosody-hg/log/eb9814372c54/util/promise.lua</link>
    <description><![CDATA[util.promise: Remove some redundant checks, add tests confirming redundancy<br/>
<br/>
This lines don't appear to do anything useful, and all tests pass when they<br/>
are removed. Discovered via mutation testing.<br/>
<br/>
I added extra tests to exercise this code, because I wasn't certain that there<br/>
were no side-effects caused by removal. Everything appears to be fine, thanks<br/>
to the &quot;pending&quot; check at the start of promise_settle().]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Fri, 07 Oct 2022 17:43:26 +0100</pubDate>
</item>
<item>
    <title>compat: Remove handling of Lua 5.1 location of 'unpack' function</title>
    <link>http://hg.omfa.de/prosody-hg/log/39ae08180c81/util/promise.lua</link>
    <description><![CDATA[compat: Remove handling of Lua 5.1 location of 'unpack' function]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 11 Jul 2022 19:07:38 +0200</pubDate>
</item>
<item>
    <title>util.promise: Support delayed promise execution</title>
    <link>http://hg.omfa.de/prosody-hg/log/073e53b72792/util/promise.lua</link>
    <description><![CDATA[util.promise: Support delayed promise execution]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sat, 05 Jan 2019 07:08:24 +0100</pubDate>
</item>
<item>
    <title>util.promise: Switch order of parameters to join()</title>
    <link>http://hg.omfa.de/prosody-hg/log/78d843faaffc/util/promise.lua</link>
    <description><![CDATA[util.promise: Switch order of parameters to join()<br/>
<br/>
This saves awkward fiddlery with varargs and also echoes the<br/>
signature of pcall/xpcall.]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 25 Mar 2021 15:08:22 +0000</pubDate>
</item>
<item>
    <title>util.promise: all()/all_settled() pass through non-promise values</title>
    <link>http://hg.omfa.de/prosody-hg/log/7d42ed3a8a40/util/promise.lua</link>
    <description><![CDATA[util.promise: all()/all_settled() pass through non-promise values]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 25 Mar 2021 14:32:32 +0000</pubDate>
</item>
<item>
    <title>util.promise: Add join() convenience method</title>
    <link>http://hg.omfa.de/prosody-hg/log/a0120e935442/util/promise.lua</link>
    <description><![CDATA[util.promise: Add join() convenience method<br/>
<br/>
Usage: promise.join(p1, p2, function (result1, result2)<br/>
  [...]<br/>
end)]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 25 Mar 2021 14:28:38 +0000</pubDate>
</item>
<item>
    <title>util.promise: Add support for arbitrary keys in all()/all_settled()</title>
    <link>http://hg.omfa.de/prosody-hg/log/24ce9d380475/util/promise.lua</link>
    <description><![CDATA[util.promise: Add support for arbitrary keys in all()/all_settled()]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 25 Mar 2021 13:51:16 +0000</pubDate>
</item>
<item>
    <title>Merge 0.11-&gt;trunk</title>
    <link>http://hg.omfa.de/prosody-hg/log/1151140fc757/util/promise.lua</link>
    <description><![CDATA[Merge 0.11-&gt;trunk]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Mon, 23 Nov 2020 20:39:47 +0000</pubDate>
</item>
<item>
    <title>util.promise: Use xpcall() for promise function to preserve tracebacks</title>
    <link>http://hg.omfa.de/prosody-hg/log/75636bf13bf0/util/promise.lua</link>
    <description><![CDATA[util.promise: Use xpcall() for promise function to preserve tracebacks]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Mon, 23 Nov 2020 20:38:51 +0000</pubDate>
</item>
<item>
    <title>util.promise: Add all_settled, which follows semantics of allSettled from ES2020</title>
    <link>http://hg.omfa.de/prosody-hg/log/7d3dbb9eb3eb/util/promise.lua</link>
    <description><![CDATA[util.promise: Add all_settled, which follows semantics of allSettled from ES2020]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Mon, 08 Jun 2020 14:01:02 +0100</pubDate>
</item>
<item>
    <title>util.promise: Remove references to callbacks after settling promise</title>
    <link>http://hg.omfa.de/prosody-hg/log/0dbb285f903e/util/promise.lua</link>
    <description><![CDATA[util.promise: Remove references to callbacks after settling promise<br/>
<br/>
This is to help the garbage collector.]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sun, 30 Dec 2018 03:24:54 +0100</pubDate>
</item>
<item>
    <title>Many things: switch from hacky multi-arg xpcall implementations to a standard util.xpcall</title>
    <link>http://hg.omfa.de/prosody-hg/log/acf74ad0b795/util/promise.lua</link>
    <description><![CDATA[Many things: switch from hacky multi-arg xpcall implementations to a standard util.xpcall]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Fri, 26 Oct 2018 19:32:00 +0100</pubDate>
</item>
<item>
    <title>util.promise: Switch from pcall to xpcall to get tracebacks on exceptions</title>
    <link>http://hg.omfa.de/prosody-hg/log/7c65e3f38e6e/util/promise.lua</link>
    <description><![CDATA[util.promise: Switch from pcall to xpcall to get tracebacks on exceptions]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Fri, 26 Oct 2018 16:09:25 +0100</pubDate>
</item>
<item>
    <title>util.promise: Remove the non-standard ability to pass a promise to reject()</title>
    <link>http://hg.omfa.de/prosody-hg/log/5fa73fbb047f/util/promise.lua</link>
    <description><![CDATA[util.promise: Remove the non-standard ability to pass a promise to reject()]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Fri, 26 Oct 2018 09:23:31 +0100</pubDate>
</item>
<item>
    <title>util.promise: Fix missing parameters</title>
    <link>http://hg.omfa.de/prosody-hg/log/98de4c2e2627/util/promise.lua</link>
    <description><![CDATA[util.promise: Fix missing parameters]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 25 Oct 2018 15:24:52 +0100</pubDate>
</item>
<item>
    <title>util.promise: Ensure chained promises always receive a value/rejection even if an intermediate promise has no handlers</title>
    <link>http://hg.omfa.de/prosody-hg/log/800c274928bf/util/promise.lua</link>
    <description><![CDATA[util.promise: Ensure chained promises always receive a value/rejection even if an intermediate promise has no handlers]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 25 Oct 2018 14:38:00 +0100</pubDate>
</item>
<item>
    <title>util.promise: Export is_promise()</title>
    <link>http://hg.omfa.de/prosody-hg/log/a83afc22e9d7/util/promise.lua</link>
    <description><![CDATA[util.promise: Export is_promise()]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 25 Oct 2018 14:19:27 +0100</pubDate>
</item>
<item>
    <title>util.promise: Remove debug print and assert</title>
    <link>http://hg.omfa.de/prosody-hg/log/c93496785022/util/promise.lua</link>
    <description><![CDATA[util.promise: Remove debug print and assert]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 25 Oct 2018 14:16:14 +0100</pubDate>
</item>
<item>
    <title>util.promise: Add promise.try()</title>
    <link>http://hg.omfa.de/prosody-hg/log/b1c6ede17592/util/promise.lua</link>
    <description><![CDATA[util.promise: Add promise.try()]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 18 Oct 2018 18:03:31 +0100</pubDate>
</item>
<item>
    <title>util.promise: Add a string representation</title>
    <link>http://hg.omfa.de/prosody-hg/log/2571c65b972f/util/promise.lua</link>
    <description><![CDATA[util.promise: Add a string representation]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Thu, 18 Oct 2018 13:33:19 +0200</pubDate>
</item>
<item>
    <title>util.promise: Add promise:finally()</title>
    <link>http://hg.omfa.de/prosody-hg/log/9db707a86a25/util/promise.lua</link>
    <description><![CDATA[util.promise: Add promise:finally()]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 18 Oct 2018 12:13:17 +0100</pubDate>
</item>
<item>
    <title>util.promise: Some code relocation</title>
    <link>http://hg.omfa.de/prosody-hg/log/4f4f9823bd1d/util/promise.lua</link>
    <description><![CDATA[util.promise: Some code relocation]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 18 Oct 2018 12:12:52 +0100</pubDate>
</item>
<item>
    <title>util.promise: Also support automatic resolution by returning a promise from an on_reject handler</title>
    <link>http://hg.omfa.de/prosody-hg/log/439cf3bbe5f3/util/promise.lua</link>
    <description><![CDATA[util.promise: Also support automatic resolution by returning a promise from an on_reject handler<br/>
<br/>
Originally unimplemented because it wasn't clear to me what the correct behaviour was, but the A+<br/>
spec is clear that both onFulfilled and onRejected may return a promise.]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 18 Oct 2018 12:11:50 +0100</pubDate>
</item>
<item>
    <title>util.promise: Fix promise.reject() to return a rejected promise, and fix buggy test for it</title>
    <link>http://hg.omfa.de/prosody-hg/log/8ef46d09386a/util/promise.lua</link>
    <description><![CDATA[util.promise: Fix promise.reject() to return a rejected promise, and fix buggy test for it]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Thu, 18 Oct 2018 12:03:33 +0100</pubDate>
</item>
<item>
    <title>util.promise: ES6-like API for promises</title>
    <link>http://hg.omfa.de/prosody-hg/log/d54a0e129af8/util/promise.lua</link>
    <description><![CDATA[util.promise: ES6-like API for promises]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Wed, 10 Oct 2018 17:45:19 +0100</pubDate>
</item>

  </channel>
</rss>
