Update: Args are now freed on job cancellation

See minetest#4f6f095
This commit is contained in:
Lars Müller 2022-08-26 13:58:54 +02:00 committed by GitHub
parent 79f7c0c8fe
commit 6bdf60a6c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -242,8 +242,6 @@ end)
NOTE: All scheduled callbacks are stored in a list until they are called. This list is traversed in linear time if *any* of the callbacks are executed. Excessive use of `minetest.after` may result in slow execution time.
WARNING: `job:cancel()` might cause a memory leak if used naively: The job - including the arguments `...` - is still kept in the job list until the job expires; only the function call isn't made. Example: `minetest.after(math.huge, error, "a super long string"):cancel()` - the string will stay in memory forever despite the job being cancelled, as `math.huge` is never reached.
== Entities
=== `entity:on_step(dtime, ...)`