synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
18 lines (17 loc) • 505 B
JavaScript
import { waitForAsyncResult as n } from "@sage-bionetworks/synapse-client";
async function i(o, e) {
const s = await o.gridServicesClient.postRepoV1GridSessionAsyncStart({
createGridRequest: e
});
if (!s.token)
throw new Error("No async job token returned from startGridSession");
return (await n(
() => o.asynchronousJobServicesClient.getRepoV1AsynchronousJobJobId({
jobId: s.token
})
)).responseBody;
}
export {
i as default
};
//# sourceMappingURL=GridApiUtils.js.map