You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whoever decides to implement a task wait on his own would have to implement a wait loop which goes like this:
while (true)
{
if (task.WasFinished)
{
//process finished task
break;
}
else
{
// see how much time passed and then maybe wait further or maybe panic
}
}
The problem is the client will have to properly implement WasFinished. Some users will only consider Completed and ProcessingFailed and so their code will hang if a task is deleted or gets into NotEnoughCredits state.
The proper way is to use Abbyy.CloudSdk.V2.Client.Models.TaskExtensions.IsInProcess but TaskExtensions class is internal so it cannot be used by user code.
Perhaps class TaskExtensions shoulb be made public so user code can access it too.
The text was updated successfully, but these errors were encountered:
Whoever decides to implement a task wait on his own would have to implement a wait loop which goes like this:
The problem is the client will have to properly implement
WasFinished
. Some users will only considerCompleted
andProcessingFailed
and so their code will hang if a task is deleted or gets intoNotEnoughCredits
state.The proper way is to use
Abbyy.CloudSdk.V2.Client.Models.TaskExtensions.IsInProcess
butTaskExtensions
class isinternal
so it cannot be used by user code.Perhaps class
TaskExtensions
shoulb be madepublic
so user code can access it too.The text was updated successfully, but these errors were encountered: