public static FinishCurrent ( PooledSocket socket ) : void | ||
socket | PooledSocket | |
return | void |
protected internal override ValueTask <IOperationResult> ReadResponseAsync(PooledSocket socket) { GetResponse r = GetHelper.ReadItem(socket); var result = new TextOperationResult(); if (r == null) { return(new ValueTask <IOperationResult>(result.Fail("Failed to read response"))); } this.result = r.Item; this.Cas = r.CasValue; GetHelper.FinishCurrent(socket); return(new ValueTask <IOperationResult>(result.Pass())); }
protected internal override IOperationResult ReadResponse(PooledSocket socket) { var response = GetHelper.ReadItem(socket); var result = new TextOperationResult(); if (response == null) { return(result.Fail("Failed to read response")); } this.result = response.Item; this.Cas = response.CasValue; GetHelper.FinishCurrent(socket); return(result.Pass()); }