getResult with timeout