annotate Implab/Messaging/IConsumer.cs @ 250:9f63dade3a40 v3

Working on runnable component
author cin
date Thu, 01 Feb 2018 02:43:35 +0300
parents
children 7c7e9ad6fe4a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
250
9f63dade3a40 Working on runnable component
cin
parents:
diff changeset
1 using System.Threading;
9f63dade3a40 Working on runnable component
cin
parents:
diff changeset
2 using System.Threading.Tasks;
9f63dade3a40 Working on runnable component
cin
parents:
diff changeset
3
9f63dade3a40 Working on runnable component
cin
parents:
diff changeset
4 namespace Implab.Messaging {
9f63dade3a40 Working on runnable component
cin
parents:
diff changeset
5 public interface IConsumer<T> {
9f63dade3a40 Working on runnable component
cin
parents:
diff changeset
6 Task<T> Receive(CancellationToken ct);
9f63dade3a40 Working on runnable component
cin
parents:
diff changeset
7
9f63dade3a40 Working on runnable component
cin
parents:
diff changeset
8 bool TryReceive(out T message);
9f63dade3a40 Working on runnable component
cin
parents:
diff changeset
9 }
9f63dade3a40 Working on runnable component
cin
parents:
diff changeset
10 }