Future.then


Description:

[ CCode ( cname = "dex_future_then" , has_construct_function = false ) ]
public Future.then (owned Future future, owned FutureCallback callback)

Calls callback when future resolves.

If future rejects, then callback will not be called.

Parameters:

future

a [class@Dex.Future]

callback

a callback to execute

callback_data

closure data for callback

callback_data_destroy

destroy notify for callback_data

Returns:

a [class@Dex.Future]