How to wait for this.store.find promise to finish before loading a widget

I am using a widget where its data is filled by obtainin some tag descriptions. I retrieve the descriptions as follows:

// tag_arr: variable containing an array of tag names.
tag_arr.forEach(tag => {
  this.store.find("tag-info", tag).then(result => {result.description //access tag description and do stuff.}
});

However, the descriptions won’t show up because the widget loads up before all iterations are completed. Is it possible to wait until this forEach actually finishes?

2 Likes