Managing a bunch of NSOperation with dependencies

后端 未结 4 1411
面向向阳花
面向向阳花 2021-02-01 08:40

I\'m working on an application that create contents and send it to an existing backend. Content is a title, a picture and location. Nothing fancy.

The backend is a bit c

4条回答
  •  广开言路
    2021-02-01 09:02

    If you still want to use NSOperation, you can rely on ProcedureKit and use the injection properties of the Procedure class.

    For each operation, specify which type it produces and inject it to the next dependent operation. You can also at the end wrap the whole process inside a GroupProcedure class.

提交回复
热议问题