You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
765 B
45 lines
765 B
// Needed for NET40 |
|
#if !NET_4_6 |
|
using System; |
|
|
|
namespace LinqInternal.Threading.Needles |
|
{ |
|
internal interface IPromise |
|
{ |
|
Exception Exception { get; } |
|
|
|
bool IsCanceled { get; } |
|
|
|
bool IsCompleted { get; } |
|
|
|
bool IsFaulted { get; } |
|
} |
|
|
|
#if NETCF |
|
|
|
internal interface IPromise<T> : IPromise, IReadOnlyNeedle<T> |
|
#else |
|
|
|
internal interface IPromise<out T> : IPromise, IReadOnlyNeedle<T> |
|
#endif |
|
{ |
|
// Empty |
|
} |
|
|
|
internal interface IWaitablePromise : IPromise |
|
{ |
|
void Wait(); |
|
} |
|
|
|
#if NETCF |
|
|
|
public interface IWaitablePromise<T> : IPromise<T>, IWaitablePromise |
|
#else |
|
|
|
internal interface IWaitablePromise<out T> : IPromise<T>, IWaitablePromise |
|
#endif |
|
{ |
|
// Empty |
|
} |
|
} |
|
#endif |