Skip to content

Use sync api of fs#2347

Merged
rosen-vladimirov merged 24 commits intomasterfrom
vladimirov/sync-api
Dec 13, 2016
Merged

Use sync api of fs#2347
rosen-vladimirov merged 24 commits intomasterfrom
vladimirov/sync-api

Conversation

@rosen-vladimirov
Copy link
Contributor

@rosen-vladimirov rosen-vladimirov commented Dec 13, 2016

NOTE: Merge AFTER telerik/mobile-cli-lib#853

Several methods were declared as IFuture<T> as in their body they are calling async methods from fs (for example $fs.exists(...).wait()). As now most of these methods are sync, convert all possible methods to sync (instead of IFuture).

We use fs.exists, which is deprecated. Change the code to use fs.existsSync instead. This makes the `$fs.exists` method to return boolean instead of `IFuture<boolean>`.
Several methods were declared as `IFuture<T>` as in their body they are calling `$fs.exists(...).wait()`. As now the `$fs.exists` method is sync, change all methods that are async only because of `$fs.exists().wait()` sync.
Make emulatorSettingsService.canStart and fs.deleteEmptyParents, fs.isEmptyDir sync
…ompletionService.isAutoCompletionEnabled and IAutoCompletionService.isObsoleteAutoCompletionEnabled sync
@rosen-vladimirov rosen-vladimirov merged commit 5749cac into master Dec 13, 2016
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/sync-api branch December 13, 2016 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants