提交 d29fb04e 编写于 作者: C Cyrus Najmabadi

Rename

上级 98143ca9
......@@ -13,16 +13,16 @@ internal class EncapsulateFieldResult
{
public readonly string Name;
public readonly Glyph Glyph;
private readonly AsyncLazy<Solution> _resultGetter;
private readonly AsyncLazy<Solution> _lazySolution;
public EncapsulateFieldResult(string name, Glyph glyph, Func<CancellationToken, Task<Solution>> getSolutionAsync)
{
Name = name;
Glyph = glyph;
_resultGetter = new AsyncLazy<Solution>(getSolutionAsync, cacheResult: true);
_lazySolution = new AsyncLazy<Solution>(getSolutionAsync, cacheResult: true);
}
public Task<Solution> GetSolutionAsync(CancellationToken cancellationToken)
=> _resultGetter.GetValueAsync(cancellationToken);
=> _lazySolution.GetValueAsync(cancellationToken);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册