Mercurial > pub > ImplabNet
view Implab/Messaging/IConsumer.cs @ 271:d4d437ec4483 v3
Working on Unity xml configuration
author | cin |
---|---|
date | Wed, 25 Apr 2018 19:23:35 +0300 |
parents | 7c7e9ad6fe4a |
children |
line wrap: on
line source
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); } }