Add timeout property to a GCancellable
@chergert
Submitted by Christian Hergert Link to original bug (#738175)
Description
It would be very convenient if we could simply set a timeout property on a GCancellable. In particular, there are many operations that we want to do but have them cancel after a reasonable amount of time has passed.
For example, way I want to download a resource from an http server but cancel if it has not made progress within the last 30 seconds.
In the file progress callback, I could just update the timeout on the cancellable, otherwise it would fire in 30 seconds.
I specify the need to be able to update the timeout, because that sounds like it could complicate eventfd type situations.
Version: 2.42.x