set_cancel_on_discard


Description:

[ Version ( since = "0.4" ) ]
public void set_cancel_on_discard (bool cancel_on_discard)

Sets whether or not the future should cancel the async operation when the future is discarded.

This happens when no more futures are awaiting the completion of this future.

Parameters:

this

a [class@Dex.AsyncPair]

cancel_on_discard

if the operation should cancel when the future is discarded