Waits until the future is completed and gets ths result.
the value associated with the future if the future is completed with a value
if the future is completed with an exception, the exception will be thrown