Diff

util/async.lua @ 7724:20a69ef5570c

util.async: Rename variable to avoid name clash [luacheck]
author Kim Alvefur <zash@zash.se>
date Sat, 19 Nov 2016 01:11:53 +0100
parent 7436:649b89b2c840
child 7725:f928695a2af1
line wrap: on
line diff
--- a/util/async.lua	Sat Nov 19 01:05:36 2016 +0100
+++ b/util/async.lua	Sat Nov 19 01:11:53 2016 +0100
@@ -126,8 +126,8 @@
 		local consumed;
 		-- Loop through queue items, and attempt to run them
 		for i = 1,n do
-			local input = q[i];
-			local ok, new_state = coroutine.resume(thread, input);
+			local queued_input = q[i];
+			local ok, new_state = coroutine.resume(thread, queued_input);
 			if not ok then
 				-- There was an error running the coroutine, save the error, mark runner as ready to begin again
 				consumed, state, err = i, "ready", debug.traceback(thread, new_state);