Software /
code /
prosody
Diff
net/websocket/frames.lua @ 9512:439cf3bbe5f3
util.promise: Also support automatic resolution by returning a promise from an on_reject handler
Originally unimplemented because it wasn't clear to me what the correct behaviour was, but the A+
spec is clear that both onFulfilled and onRejected may return a promise.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 18 Oct 2018 12:11:50 +0100 (2018-10-18) |
parent | 8728:41c959c5c84b |
child | 9659:86c431650dfd |
child | 11106:76f46c2579a2 |