-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fully make loadAsync asynchronous (#1053)
This should make every part that uses `loadAsync` asynchronous The changes I made: - I ended up creating a new method to make SHA-1 hashes asynchronously, did up some reading up and found that `crypto.createHash` could potentially be blocking. - Ended up doing some slight code cleanup in `ImporterUtil` to make that helper more readable. - I changed `deserializeWithCacheCheckAsync` to skip writing files with an extra parameter as it was blocking, this can now be called manually with `writeCacheAsync` (Default behavior of this method stays the same)
- Loading branch information
1 parent
7468975
commit ab1b5cd
Showing
4 changed files
with
67 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters