Software /
code /
prosody
Comparison
spec/util_async_spec.lua @ 11200:bf8f2da84007
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 05 Nov 2020 22:31:25 +0100 |
parent | 10541:6c6ff4509082 |
child | 11961:542a9a503073 |
comparison
equal
deleted
inserted
replaced
11199:6c7c50a4de32 | 11200:bf8f2da84007 |
---|---|
542 assert.equal(r1.state, "ready"); | 542 assert.equal(r1.state, "ready"); |
543 | 543 |
544 assert.equal(r1.state, "ready"); | 544 assert.equal(r1.state, "ready"); |
545 end); | 545 end); |
546 | 546 |
547 -- luacheck: ignore 211/rf | |
548 -- FIXME what's rf? | |
547 it("should support multiple done() calls", function () | 549 it("should support multiple done() calls", function () |
548 local processed_item; | 550 local processed_item; |
549 local wait, done; | 551 local wait, done; |
550 local r, rf = new(function (item) | 552 local r, rf = new(function (item) |
551 wait, done = async.waiter(4); | 553 wait, done = async.waiter(4); |