def
func:futureWaitFor
futureWaitFor(future, timeout: null)
Block until a future transitions to a completed state (ok, err, or canceled). If timeout is null then block forever, otherwise raise a TimeoutErr if timeout elapses. Return future. See task.