diff Implab/Safe.cs @ 213:9ee78a345738 v2

Minor code changes
author cin
date Tue, 11 Apr 2017 01:35:18 +0300
parents a867536c68fc
children fe5101083150
line wrap: on
line diff
--- a/Implab/Safe.cs	Tue Apr 04 12:04:05 2017 +0300
+++ b/Implab/Safe.cs	Tue Apr 11 01:35:18 2017 +0300
@@ -6,6 +6,10 @@
 using System.Diagnostics;
 using System.Collections;
 
+#if NET_4_5
+using System.Threading.Tasks;
+#endif
+
 namespace Implab
 {
     public static class Safe
@@ -117,6 +121,9 @@
             }
         }
 
+        public static void NoWait(IPromise promise) {
+        }
+
         [DebuggerStepThrough]
         public static IPromise<T> Run<T>(Func<IPromise<T>> action) {
             ArgumentNotNull(action, "action");
@@ -128,5 +135,10 @@
             }
         }
 
+#if NET_4_5
+        public static void NoWait(Task t) {
+        }
+#endif
+
     }
 }