Cancel the future and schedule callbacks.
If the future is already done or cancelled, return $(D_KEYWORD false). Otherwise, change the future's state to cancelled, schedule the callbacks and return $(D_KEYWORD true).
See Implementation
Cancel the future and schedule callbacks.
If the future is already done or cancelled, return $(D_KEYWORD false). Otherwise, change the future's state to cancelled, schedule the callbacks and return $(D_KEYWORD true).