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

Question: Asynchronous File transformer? #91

Closed
timshannon opened this issue Oct 6, 2015 · 1 comment
Closed

Question: Asynchronous File transformer? #91

timshannon opened this issue Oct 6, 2015 · 1 comment

Comments

@timshannon
Copy link

Is there anyway to do an asynchronous file transformer? I have a plugin that makes more sense as an individual file transformer instead of a directory transformer, but it returns a promise or calls a callback asynchronously when it's finished.

The definition of a file transformer appears to only allow for a synchronous return of the finished transform.

Is something like this available?

function myplugin ( input, options, callback ) {
  transformFunction(input, options, function(result) {
     callback(result);
  });
}

@timshannon
Copy link
Author

#112 is the same but with more info, I'm closing this one.

Thanks,

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

No branches or pull requests

1 participant