View Single Post
Old 03-12-2024, 12:00 AM   #5
Maimun Ahmed
Mr. Developer
Maimun Ahmed began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Feb 2024
Device: Kindle Voyage
Quote:
Originally Posted by pazos View Post
Hi, if this is something you want for yourself, even without a real purpose, I think you can build something quickly using the emulator. We ship a widget test utility in https://github.com/koreader/koreader...s/wbuilder.lua, so you can play with your widget without launching a full blown KOReader instance.

If you want to build something that does some background job while displaying the animation that's harder.

A lua state/vm is mostly single threaded. The best you can do is some sort of cooperative multitasking, in the form of lua coroutines
Maybe I am wrong but then, how is the read timer counting down in the background while we continue to use the ui.
Maimun Ahmed is offline   Reply With Quote