Whitelist Task related stuff
What it is?
There are some things that i think should be whitelisted:
Task.IsCanceled
Task.IsFaulted
this kinda can be accessed by Task.Status, so not sure why they are not whitelisted
Task.Exception
Usually this is needed to handle it in Task.ContinueWith and then rethrow it
OperationCanceledException
cant do new OperationCanceledException(), constructor is not whitelisted
but we can use new TaskCanceledException();
BUT we can't
try
{
}
catch ( OperationCanceledException ex)
{
Log.Info( ex );
}
Why do you need to use this?
It whould allow me to work with async as normal person
P.S. I can't wash my balls in async with pleasure without all of said above
@garrynewman it looks like Task.IsCanceled Task.IsFaulted Task.Exception are not whitelisted
can you please reopen the issue?
Look whitelisted to me