示例#1
0
        public ValueTask <FasterKV <Key, Value, Input, Output, Context, Functions> .ReadAsyncResult> ReadAsync(ref Key key, ref Input input, Context context = default, bool waitForCommit = false, CancellationToken token = default)
        {
            var readResult = fht.ReadAsync(this, ref key, ref input, context, token);

            if (readResult.IsCompleted && !waitForCommit)
            {
                return(readResult);
            }

            return(SlowReadAsync(this, readResult, waitForCommit, token));
示例#2
0
 public ValueTask <FasterKV <Key, Value, Input, Output, Context, Functions> .ReadAsyncResult> ReadAsync(ref Key key, ref Input input, Context context = default, CancellationToken token = default)
 {
     return(fht.ReadAsync(this, ref key, ref input, context, token));
 }