def
func:taskSendWhenComplete
taskSendWhenComplete(task, future, msg: future)
Schedule a message for delivery after the given future has completed. Completion may be due to the future returning a result, throwing an exception, or cancellation. Return a future to track the asynchronous result. See task.