mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-12 14:51:41 +01:00
perf. tweak
This commit is contained in:
parent
7467c0f236
commit
218ad92525
@ -111,7 +111,7 @@ namespace Capnp.Util
|
||||
/// <summary>
|
||||
/// Whether the underlying task did complete and it is safe to skip continuation registration.
|
||||
/// </summary>
|
||||
public bool IsCompleted => _awaitedTask.IsCompleted && _state == s_seal;
|
||||
public bool IsCompleted => _awaitedTask.IsCompleted && (_state == s_cover || _state == s_seal);
|
||||
|
||||
/// <summary>
|
||||
/// Part of await pattern implementation. Do not use directly.
|
||||
|
Loading…
x
Reference in New Issue
Block a user