From 18c708eb8fbe995efe4b06b93421db3d25e22636 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Tue, 10 Dec 2024 17:07:09 +0100 Subject: lanes.collectgarbage() and linda:collectgarbage() --- docs/index.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'docs') diff --git a/docs/index.html b/docs/index.html index 6757981..8bb181f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -453,6 +453,20 @@ +

+ A full GC cycle can be triggered on all keeper states with lanes.collectgarbage(). This can force the collection of stale storage data for a collected Linda. +

+ +

+ + + + +
+
	lanes.collectgarbage()
+
+

+

It is also possible to install a function that will be called when Lanes is shutdown (that is, when the first state that required Lanes is closed).

@@ -1394,6 +1408,15 @@ Trying to send or receive data through a cancelled linda does nothing and returns lanes.cancel_error.

+
+	linda_h:collectgarbage()
+
+ +

+ Forces a full garbage collect cycle inside the Keeper state assigned to the Linda (same as lua_gc(L, LUA_GCCOLLECT)).
+ Can be useful to clean stale storage after some keys are cleaned. +

+
 	[val] = linda_h:count([slot[,...]])
 
-- cgit v1.2.3-55-g6feb