Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
Desour committed Oct 24, 2024
1 parent 07b416b commit d64dc7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/lua_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6925,6 +6925,11 @@ Timing
* `time` is a lower bound. The job is executed in the first server-step that
started at least `time` seconds after the last time a server-step started,
measured with globalstep dtime.
In particular this can result in relatively large delays if `time` is close
to the server-step dtime. For example, with a target server-step of 0.09 s
(the engine uses the target as a lower bound for the actual server-step
dtime), `minetest.after(0.09, ...)` usually waits two steps, resulting in
a delay of about 0.18 s.
* If `time` is `0`, the job is executed in the next step.

* `job:cancel()`
Expand Down

0 comments on commit d64dc7e

Please sign in to comment.