Callback for async image saving

The title pretty much sums it up, but it would be useful to be able to pass a callback function to the TOP class save() method when setting it to async=True to know when the file has finished being saved on disk.

As an example, one of our use cases is that we’ll often be working with other software and we’d like to notify that images are ready to be downloaded through some networking protocol like mqtt. Currently we’ll delay the message saying that the image is ready until we’re pretty sure that it has finished writing to disk.

Thanks

  • Alex
1 Like

A big +1 on this one. Banged my head at this issue more then once and also just went with (lets wait 3 framea…) which is pretty dirty.

1 Like

Thanks, we’ve logged this to do, have definitely ran into it before as well.

1 Like