refactor: use async function to simplify promise logic
refactor: use async function to simplify promise logic

google/neuroglancer,google/neuroglancer,google/neuroglancer,google/neuroglancer,google/neuroglancer,google/neuroglancer,google/neuroglancer,google/neuroglancer