genric result type for waitFor calls.