8000 Change sync IMemcachedNode.ExecuteAsync to be async · cnblogs/EnyimMemcachedCore@c3bec74 · GitHub
[go: up one dir, main page]

Skip to content

Commit c3bec74

Browse files
committed
Change sync IMemcachedNode.ExecuteAsync to be async
1 parent d4d77a4 commit c3bec74

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Enyim.Caching/Memcached/IMemcachedNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public interface IMemcachedNode : IDisposable
1515

1616
IOperationResult Execute(IOperation op);
1717
Task<IOperationResult> ExecuteAsync(IOperation op);
18-
bool ExecuteAsync(IOperation op, Action<bool> next);
18+
Task<bool> ExecuteAsync(IOperation op, Action<bool> next);
1919

2020
// PooledSocket CreateSocket(TimeSpan connectionTimeout, TimeSpan receiveTimeout);
2121

Enyim.Caching/Memcached/MemcachedNode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,9 +961,9 @@ async Task<IOperationResult> IMemcachedNode.ExecuteAsync(IOperation op)
961961
return await this.ExecuteOperationAsync(op);
962962
}
963963

964-
bool IMemcachedNode.ExecuteAsync(IOperation op, Action<bool> next)
964+
async Task<bool> IMemcachedNode.ExecuteAsync(IOperation op, Action<bool> next)
965965
{
966-
return this.ExecuteOperationAsync(op, next).Result;
966+
return await ExecuteOperationAsync(op, next);
967967
}
968968

969969
event Action<IMemcachedNode> IMemcachedNode.Failed

0 commit comments

Comments
 (0)
0