diff options
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.Highlighting/PObject.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.Highlighting/PObject.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.Highlighting/PObject.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.Highlighting/PObject.cs index b4616c511c..74bddf2a75 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.Highlighting/PObject.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor.Highlighting/PObject.cs @@ -330,7 +330,7 @@ namespace MonoDevelop.Ide.Editor.Highlighting public Task SaveAsync (string filename, bool atomic = false, bool binary = false) { - return Task.Factory.StartNew (() => Save (filename, atomic, binary)); + return Task.Run (() => Save (filename, atomic, binary)); } public void Save (string filename, bool atomic = false, bool binary = false) @@ -675,7 +675,7 @@ namespace MonoDevelop.Ide.Editor.Highlighting public static Task<PDictionary> FromFileAsync (string fileName) { - return Task<PDictionary>.Factory.StartNew (() => { + return Task.Run (() => { bool isBinary; return FromFile (fileName, out isBinary); }); |