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

export loadFile #33

Merged
merged 1 commit into from
Oct 4, 2023
Merged

export loadFile #33

merged 1 commit into from
Oct 4, 2023

Conversation

mshima
Copy link
Collaborator

@mshima mshima commented Oct 4, 2023

loadFile can be used inside pipelines:

store.pipeline(
  Duplex.from(async (generator: AsyncGenerator<StoreFile>) => {
    for await (const file of generator) {
      yield file;
      if (something) {
        yield loadFile();
      }
    }
  }),
);

@SBoudrias SBoudrias merged commit 08c00ca into SBoudrias:master Oct 4, 2023
@mshima mshima deleted the export-loadFile branch October 4, 2023 20:07
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.

2 participants