big refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-21 21:41:28 +02:00
parent c235f0332e
commit 7232d62418
9 changed files with 30 additions and 32 deletions
+2 -2
View File
@@ -37,13 +37,13 @@ do
call(on_complete)
end
function private.state.get()
function getter.state()
local _, state = next(filter(scan_states, function(state) return state.id == control.thread_id end))
return state
end
end
function private.query.get() return state.params.queries[state.query_index] end
function getter.query() return state.params.queries[state.query_index] end
function wait_for_callback(...)
local send_signal, signal_received = signal()