Commit 0ccd0c23 authored by Nick Craver's avatar Nick Craver

Docs: IRedisAsync

parent dfa0bfe1
......@@ -16,6 +16,7 @@ public partial interface IRedisAsync
/// <summary>
/// This command is often used to test if a connection is still alive, or to measure latency.
/// </summary>
/// <param name="flags">The command flags to use.</param>
/// <returns>The observed latency.</returns>
/// <remarks>https://redis.io/commands/ping</remarks>
Task<TimeSpan> PingAsync(CommandFlags flags = CommandFlags.None);
......@@ -23,21 +24,26 @@ public partial interface IRedisAsync
/// <summary>
/// Wait for a given asynchronous operation to complete (or timeout), reporting which
/// </summary>
/// <param name="task">The task to wait on.</param>
bool TryWait(Task task);
/// <summary>
/// Wait for a given asynchronous operation to complete (or timeout)
/// </summary>
/// <param name="task">The task to wait on.</param>
void Wait(Task task);
/// <summary>
/// Wait for a given asynchronous operation to complete (or timeout)
/// </summary>
/// <typeparam name="T">The type of task to wait on.</typeparam>
/// <param name="task">The task to wait on.</param>
T Wait<T>(Task<T> task);
/// <summary>
/// Wait for the given asynchronous operations to complete (or timeout)
/// </summary>
/// <param name="tasks">The tasks to wait on.</param>
void WaitAll(params Task[] tasks);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment