Skip to content

find

Return a table of live handles for one process type, in creation order. Available as find after import_globals() or mv.process.find.

Parameters

  • constructor — A process constructor.
for _, p in ipairs(find(Walk)) do
print(p.x)
end

Related: children, descendants, snapshot.

See the lua processes guide for more examples and limits.