Mercurial > pub > ImplabNet
view Implab/Messaging/IConsumer.cs @ 255:b00441e04738 v3
Adde workaround to the behaviour of the logical operations stack in conjuction
with async/await methods
author | cin |
---|---|
date | Wed, 04 Apr 2018 15:38:48 +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); } }