Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make exports return a Promise that resolves after last callback was called #2

Closed
wants to merge 1 commit into from

Conversation

thexeos
Copy link
Owner

@thexeos thexeos commented Feb 8, 2023

No description provided.

Create new variable in document and index exports, which contains a handle for Promise resolve call. When Index is exported directly, then `field` argument is `undefined`, thus the Promise is resolved inside the index export method. When Document is exported, then `field` argument is set, thus preventing Promise to be resolved inside Index export method before all indexes, store, and tags are exported.
@thexeos thexeos closed this Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant