Skip to content

What is the reason behind of using readFileSync vs readFile? #74

Description

@heron2014

Related to the following line: https://github.com/dwyl/sendemail/blob/master/lib/index.js#L38

I was wondering if you guys could clarify the above line for me.

Aren't we blocking the thread by using sync method in node? What happen if there is an error of reading the file?

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions