Software /
code /
prosody
Changeset
10928:79faf5b98395
util.async: Rename wait -> wait_for (w/compat)
Agreed this name is clearer and wait_for(thing) reads well in code.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 13 Jun 2020 08:01:57 +0100 |
parents | 10927:470602a8b633 |
children | 10929:ad5e373b1419 |
files | util/async.lua |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/util/async.lua Fri Jun 12 16:59:06 2020 +0100 +++ b/util/async.lua Sat Jun 13 08:01:57 2020 +0100 @@ -246,7 +246,7 @@ return pcall(checkthread); end -local function wait(promise) +local function wait_for(promise) local async_wait, async_done = waiter(); local ret, err = nil, nil; promise:next( @@ -266,5 +266,6 @@ waiter = waiter; guarder = guarder; runner = runner; - wait = wait; + wait = wait_for; -- COMPAT w/trunk pre-0.12 + wait_for = wait_for; };