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
The operation queue will deadlock if cancelAllOperations is called on the queue before all operations have executed. The culprit is in the start method
guard !isCancelled else { finish() return }
The state value will be .ready which will cause the finish method to never change the state to .finished. Thus, causing a deadlock.
You can either update the guard statement to manually set the state to .finish.
Or, change the finish method to not check for the isExecuting state.
The text was updated successfully, but these errors were encountered:
The operation queue will deadlock if cancelAllOperations is called on the queue before all operations have executed. The culprit is in the start method
guard !isCancelled else { finish() return }
The state value will be .ready which will cause the finish method to never change the state to .finished. Thus, causing a deadlock.
You can either update the guard statement to manually set the state to .finish.
Or, change the finish method to not check for the isExecuting state.
The text was updated successfully, but these errors were encountered: