Currently, there is no way to run MaskedSource.persistCanvas and wait in the calling thread until persisting has finished. This is relevant in particular when closing Paintera and asking to persist/commit canvas. The method creates a new Thread every time it is called. It may be better to just manage this call in an ExecutorService instead of creating a new thread.
Currently, there is no way to run
MaskedSource.persistCanvas
and wait in the calling thread until persisting has finished. This is relevant in particular when closing Paintera and asking to persist/commit canvas. The method creates a newThread
every time it is called. It may be better to just manage this call in anExecutorService
instead of creating a new thread.