##// END OF EJS Templates
Added IInitializable.Initialize() overload...
Added IInitializable.Initialize() overload Added IRunnable.Start(), IRunnable.Start() overloads Fixed cancellation of the current operation when Stop() is called More tests

File last commit:

r251:7c7e9ad6fe4a v3
r262:f1696cdc3d7a v3.0.8 v3
Show More
IConsumer.cs
11 lines | 262 B | text/x-csharp | CSharpLexer
using System.Threading;
using System.Threading.Tasks;
namespace Implab.Messaging {
public interface IConsumer<T> {
T Receive(CancellationToken ct);
Task<T> ReceiveAsync(CancellationToken ct);
bool TryReceive(out T message);
}
}