Attaches the callable fn to the future. fn will be called, with the future as its only argument, when the future is cancelled or finishes running.
add_done_callback(fn)