[ CCode ( cname = "dex_future_catch_loop" , has_construct_function = false ) ]
public Future.catch_loop (owned Future future, owned FutureCallback callback)
Asynchronously calls callback when future rejects.
This is similar to [ctor@Dex.Future.catch] except that it will call callback multiple times as each returned [
class@Dex.Future] rejects, allowing for infinite loops.
| future |
a [class@Dex.Future] |
| callback |
a callback to execute |
| callback_data |
closure data for |
| callback_data_destroy |
destroy notify for |
|
a [class@Dex.Future] |