Skip to content

Commit

Permalink
fix(IPubSubApi): some method names are wrong #65
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Nov 1, 2018
1 parent 8de33bc commit 20ba3ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CoreApi/IPubSubApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public interface IPubSubApi
/// Get the peers that are pubsubing with us.
/// </summary>
/// <param name="topic">
/// When specified, only peers pubsubing on the topic are returned.
/// When specified, only peers subscribing on the topic are returned.
/// </param>
/// <param name="cancel">
/// Is used to stop the task. When cancelled, the <see cref="TaskCanceledException"/> is raised.
Expand All @@ -64,7 +64,7 @@ public interface IPubSubApi
/// <returns>
/// A task that represents the asynchronous operation.
/// </returns>
Task Publish(string topic, string message, CancellationToken cancel = default(CancellationToken));
Task PublishAsync(string topic, string message, CancellationToken cancel = default(CancellationToken));

/// <summary>
/// Subscribe to messages on a given topic.
Expand All @@ -85,7 +85,7 @@ public interface IPubSubApi
/// <remarks>
/// The <paramref name="handler"/> is invoked on the topic listener thread.
/// </remarks>
Task Subscribe(string topic, Action<IPublishedMessage> handler, CancellationToken cancellationToken);
Task SubscribeAsync(string topic, Action<IPublishedMessage> handler, CancellationToken cancellationToken);

}
}

0 comments on commit 20ba3ca

Please sign in to comment.