DesktopThumbnailFactory lacks an Async version for Javascript
When wanting to create thumbnails for a file using DesktopThumbnailFactory, there is the problem that generate_thumbnail()
is a synchronous method, and thus it blocks the current thread until it has ended (which can be a relatively big time). Under C or python this is not a problem because you can always create a thread and run it there, but under Javascript the only way is to launch a new process with a different code that creates the thumbnail (this is, in fact, the solution that we had to use in Desktop Icons and Desktop Icons NG to avoid locking the desktop while the thumbnails are created).
An asynchronous version of generate_thumbnail()
would resolve this problem.
Edited by Rastersoft