micro/runtime/help
Dmytro Maluka 9089e9ec83 Add micro's own lua timer function micro.After()
Directly using Go's time.AfterFunc() from lua is tricky. First, it
requires the lua timer callback to explicitly lock ulua.Lock to prevent
races. Second, it requires the lua timer callback to explicitly redraw
the screen if the callback changes the screen contents (see #2923).

So instead provide micro's own timer API which ensures both
synchronization and redrawing on its own, instead of leaving this burden
to lua code. In fact, its implementation runs the lua timer callback in
the main micro's goroutine (i.e. from micro's perspective it is
synchronous, not asynchronous), so both redrawing and synchronization
are ensured automatically.

Fixes #2923
2024-03-14 04:52:59 +01:00
..
colors.md options: add matchbracestyle (#2876) 2024-03-13 20:21:27 +01:00
commands.md command: Add capability to use relative numbers in goto (#2985) 2024-03-13 21:32:12 +01:00
copypaste.md Update copypaste.md (#2826) 2023-07-08 14:08:15 -07:00
defaultkeys.md Add better explanation about find 2022-10-12 19:05:42 -07:00
help.md Doc changes (#2646) 2023-01-11 21:56:23 -08:00
keybindings.md Merge pull request #2606 from dmaluka/mouse-release-and-drag-events 2024-03-14 03:54:04 +01:00
options.md Highlighting trailing whitespaces 2024-03-14 03:10:31 +01:00
plugins.md Add micro's own lua timer function micro.After() 2024-03-14 04:52:59 +01:00
tutorial.md Fix typo in tutorial.md (#2130) 2021-06-12 23:52:08 -04:00