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
{{ message }}
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
Just found something, I was generating 2 operations using the AddOperation, if I only generate one, the finished will be called
as stated in the example: when OperationB finish I am generating 2 independent operations (C & D) using the AddOperation, by doing this it looks like the BlockOberser finish completion handler is not called and the finish method also
Workaround: Generate Operation C and in the same method operationDidFinish(_ operation: Foundation.Operation, withErrors errors: [NSError])
wait for it to finish and generate OperationD and it will works
I notice that in a GroupOperation, if you generate a new operation in the method
operationDidFinish(_ operation: Foundation.Operation, withErrors errors: [NSError])
using addOperation
the
finished(_ errors: [NSError])
is not calledexample: GroupOperation that contains OperationA & OperationB
when OperationB finish, you want to generate OperationC on a particular condition
OperationC will be execute successfully and the block observer will be called correctly, however the GroupOperation won't called it's finish method
Is that a bug ?
thanks
The text was updated successfully, but these errors were encountered: