Mercurial > pub > ImplabNet
annotate Implab/Messaging/IProducer.cs @ 250:9f63dade3a40 v3
Working on runnable component
| author | cin |
|---|---|
| date | Thu, 01 Feb 2018 02:43:35 +0300 |
| parents | |
| children | 7c7e9ad6fe4a |
| rev | line source |
|---|---|
| 250 | 1 using System.Collections.Generic; |
| 2 using System.Threading; | |
| 3 using System.Threading.Tasks; | |
| 4 | |
| 5 namespace Implab.Messaging { | |
| 6 public interface IProducer<T> { | |
| 7 Task PostMessageAsync(T message, CancellationToken ct); | |
| 8 | |
| 9 Task PostMessagesAsync(IEnumerable<T> messages, CancellationToken ct); | |
| 10 } | |
| 11 } |
