-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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.
wibosco and 21DerickDerick
Metadata
Metadata
Assignees
Labels
No labels