[ CCode ( cname = "dex_future_with_timeout_seconds" , has_construct_function = false ) ]
[ Version ( since = "1.2" ) ]
public Future.with_timeout_seconds (owned Future future, int seconds)
Creates a new [class@Dex.
Future] that resolves or rejects with the same result as future, unless seconds elapses first. If the timeout
elapses first, the returned future rejects with dex_error_timed_out and discards future.
| future |
a [class@Dex.Future] |
| seconds |
number of seconds |
|
a [class@Dex.Future] |