Add result() to ProcessGroupGloo::AsyncWork's (#57565)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/57565
Test Plan: Imported from OSS
Reviewed By: albanD
Differential Revision: D28255120
Pulled By: agolynski
fbshipit-source-id: 1e904d4fe024d5b99cb642f8689ca32be0581e82