annotate Implab/IPromise.cs @ 19:e3935fdf59a2
promises
Promise is rewritten to use interlocked operations instead of locks
author |
cin |
date |
Sun, 10 Nov 2013 00:21:33 +0400 |
parents |
eb418ba8275b |
children |
9bf5b23650c9 |
rev |
line source |
7
|
1 using System;
|
|
2 using System.Collections.Generic;
|
|
3 using System.Linq;
|
|
4 using System.Text;
|
|
5
|
|
6 namespace Implab
|
|
7 {
|
12
|
8 public interface IPromise: ICancellable
|
7
|
9 {
|
|
10 /// <summary>
|
|
11 /// Check whereather the promise has no more than one dependent promise.
|
|
12 /// </summary>
|
|
13 bool IsExclusive
|
|
14 {
|
|
15 get;
|
|
16 }
|
|
17
|
|
18
|
|
19 }
|
|
20 }
|