mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-12 14:51:41 +01:00
Troubleshooting ReleaseOnCancelClient, 2nd attempt
This commit is contained in:
parent
97c2c2d127
commit
d97010de42
@ -332,9 +332,15 @@ namespace Capnp.Net.Runtime.Tests
|
||||
try
|
||||
{
|
||||
t.Result.Dispose();
|
||||
// Scenario 1: Cancellation happened after computing the answer, but before client-side completion.
|
||||
}
|
||||
catch (TaskCanceledException)
|
||||
{
|
||||
// Scenario 2: Cancellation happened before or while computing the answer.
|
||||
}
|
||||
catch (ObjectDisposedException)
|
||||
{
|
||||
// Scenario 3: Cancellation happened after computing the answer, and after client-side completion.
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user