big refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-22 16:24:00 +02:00
parent 54c082cff9
commit c0f8aece7e
11 changed files with 94 additions and 106 deletions
+2 -2
View File
@@ -37,13 +37,13 @@ do
call(on_complete)
end
function getter.state()
function accessor.state()
local _, state = next(filter(scan_states, function(state) return state.id == thread_id end))
return state
end
end
function getter.query() return state.params.queries[state.query_index] end
function accessor.query() return state.params.queries[state.query_index] end
function wait_for_callback(...)
local send_signal, signal_received = signal()