Hold on, think about whether we need this new tryRefresh API if it only swallows all exception, as customers can simply write refresh().catch(/* do nothing */) on their own without breaking the application potentially.
I notice in .NET provider, it basically catches all kinds of exceptions (but throws AggregationException in some cases), not sure in which cases we want to throw exceptions.
Hold on, think about whether we need this new
tryRefresh
API if it only swallows all exception, as customers can simply writerefresh().catch(/* do nothing */)
on their own without breaking the application potentially. I notice in .NET provider, it basically catches all kinds of exceptions (but throws AggregationException in some cases), not sure in which cases we want to throw exceptions.