IDeferred.cs
14 lines
| 294 B
| text/x-csharp
|
CSharpLexer
/ Implab / IDeferred.cs
cin
|
r119 | using System; | ||
namespace Implab { | ||||
/// <summary> | ||||
/// Deferred result, usually used by asynchronous services as the service part of the promise. | ||||
/// </summary> | ||||
public interface IDeferred : ICancellable { | ||||
void Resolve(); | ||||
void Reject(Exception error); | ||||
} | ||||
} | ||||