change naming of function

This commit is contained in:
alice 2024-08-17 03:22:31 +02:00 committed by centau
parent 80f91338aa
commit f74462192b
2 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ local function batch(setter: () -> ())
if not already_batching then if not already_batching then
flags.batch = true flags.batch = true
from = graph.get_graph_length() from = graph.get_update_queue_length()
end end
local ok, err: string? = pcall(setter) local ok, err: string? = pcall(setter)

View file

@ -184,7 +184,7 @@ local function queue_children_for_update<T>(node: SourceNode<T>)
update_queue.n = i update_queue.n = i
end end
local function get_graph_length() local function get_update_queue_length()
return update_queue.n return update_queue.n
end end
@ -282,6 +282,6 @@ return table.freeze {
create_source_node = create_source_node, create_source_node = create_source_node,
get_children = get_children, get_children = get_children,
flush_update_queue = flush_update_queue, flush_update_queue = flush_update_queue,
get_graph_length = get_graph_length, get_update_queue_length = get_update_queue_length,
scopes = scopes scopes = scopes
} }