Add then(callback)->Future API to ivalue::Future (#37311)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/37311
Test Plan: Imported from OSS
Differential Revision: D21247827
Pulled By: mrshenli
fbshipit-source-id: f8fe0617ccb957aa747a78554a000ce2c4a58495