refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-25 01:32:55 +02:00
parent a4e3068557
commit 9adbe7f2ca
11 changed files with 53 additions and 43 deletions
+2 -2
View File
@@ -41,13 +41,13 @@ do
call(on_complete)
end
function accessor.state()
function property.state.get()
local _, state = next(filter(scan_states, function(state) return state.id == thread_id end))
return state
end
end
function accessor.query() return state.params.queries[state.query_index] end
function property.query.get() return state.params.queries[state.query_index] end
function wait_for_callback(...) temp=arg
local send_signal, signal_received = signal()