# HG changeset patch # User Matthew Wild # Date 1592031717 -3600 # Node ID 79faf5b9839544de46b4cf488e23847343165d8f # Parent 470602a8b6334bc7e34a5382948f0641c17a0013 util.async: Rename wait -> wait_for (w/compat) Agreed this name is clearer and wait_for(thing) reads well in code. diff -r 470602a8b633 -r 79faf5b98395 util/async.lua --- 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; };