refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-27 12:47:29 +02:00
parent abcc782daa
commit b734d14bea
12 changed files with 86 additions and 121 deletions
+2 -2
View File
@@ -37,13 +37,13 @@ do
call(on_complete)
end
function property.state.get()
function state.get()
local _, state = next(filter(scan_states, function(state) return state.id == thread_id end))
return state
end
end
function property.query.get() return state.params.queries[state.query_index] end
function query.get() return state.params.queries[state.query_index] end
function wait_for_callback(...) temp=arg
local send_signal, signal_received = signal()