Comparison

util/async.lua @ 13337:5e258164d214

util.async: Clip long line [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 21 Nov 2023 22:18:17 +0100
parent 13333:fa4143163e01
comparison
equal deleted inserted replaced
13336:f91761822420 13337:5e258164d214
231 if state == "ready" and self.current_item then 231 if state == "ready" and self.current_item then
232 self.current_item = nil; 232 self.current_item = nil;
233 end 233 end
234 234
235 if err or state ~= self.notified_state then 235 if err or state ~= self.notified_state then
236 self:log("debug", "changed state from %s to %s [%s %s]", self.notified_state, err and ("error ("..state..")") or state, self.thread, self.thread and coroutine.status(self.thread)); 236 self:log("debug", "changed state from %s to %s [%s %s]", self.notified_state, err and ("error (" .. state .. ")") or state, self.thread,
237 self.thread and coroutine.status(self.thread));
237 if err then 238 if err then
238 state = "error" 239 state = "error"
239 else 240 else
240 self.notified_state = state; 241 self.notified_state = state;
241 end 242 end