diff Implab/Parallels/AsyncPool.cs @ 45:d10034588e38 interactive logger

initial work on interactive logger
author cin
date Thu, 17 Apr 2014 03:05:53 +0400
parents fe33f4e02ad5
children d9d794b61bb9
line wrap: on
line diff
--- a/Implab/Parallels/AsyncPool.cs	Wed Apr 16 00:33:09 2014 +0400
+++ b/Implab/Parallels/AsyncPool.cs	Thu Apr 17 03:05:53 2014 +0400
@@ -12,7 +12,7 @@
 	/// </remarks>
 	public static class AsyncPool {
 
-		public static Promise<T> Invoke<T>(Func<T> func) {
+		public static IPromise<T> Invoke<T>(Func<T> func) {
 			var p = new Promise<T>();
             var caller = TraceContext.Snapshot();
 
@@ -28,7 +28,7 @@
 			return p;
 		}
 
-        public static Promise<T> InvokeNewThread<T>(Func<T> func) {
+        public static IPromise<T> InvokeNewThread<T>(Func<T> func) {
             var p = new Promise<T>();
 
             var caller = TraceContext.Snapshot();