saalfeldlab / paintera

GNU General Public License v2.0
100 stars 17 forks source link

No way to run MaskedSource.persistCanvas in a blocking manner currently. #308

Open hanslovsky opened 5 years ago

hanslovsky commented 5 years ago

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.