taxonium-component
Version:
React component for exploring large phylogenetic trees in the browser
25 lines (24 loc) • 845 B
JavaScript
import { O as p, Q as u, u as r, R as g, t as d, j as n } from "./JBrowsePanel-uJIA-L6s.js";
import { a as S } from "./aborting-DAWWmOkt.js";
function k(t) {
p(t, u(async () => {
try {
if (!r.getContainingView(t).initialized)
return;
const { rpcManager: a } = r.getSession(t), { adapterConfig: e } = t, i = g.createStopToken();
t.setSourcesLoading(i);
const s = d.getRpcSessionId(t), c = await a.call(s, "MultiVariantGetSources", {
sessionId: s,
adapterConfig: e,
stopToken: i
});
n(t) && t.setSources(c);
} catch (o) {
!S.isAbortException(o) && n(t) && (console.error(o), r.getSession(t).notifyError(`${o}`, o));
}
}, { delay: 1e3 }));
}
export {
k as getMultiVariantSourcesAutorun
};
//# sourceMappingURL=getMultiVariantSourcesAutorun-Bsj2fbcb.js.map