raspberrypi / picamera2

New libcamera based python library
BSD 2-Clause "Simplified" License
891 stars 188 forks source link

Add timeout support when waiting for asynchronous request to finish #889

Closed davidplowman closed 11 months ago

davidplowman commented 11 months ago

Waiting for a "job" to finish lets you specify a timeout. A TimeoutError is raised if the timeout occurs. Note that this doesn't "cancel" the job in any way.

You can also pas a timeout of zero simply to poll for whether the job has completed.