For signal APIs which are expected to be primarily used by UI components, do you put deliverOn: in signal vendor or client?
Conversation
Replying to
As an example, RACCommand vends signals already deliverOn:’d. It was a documented as a guarantee.
1
Replying to
Also interested. I've put it in the client, because they have the requirement.
1
The client may also wish to do transforms before moving to main thread.
1
Show replies
Replying to
For View Models, though I’ve always left deliverOn: to the view layer.
1
1
agreed. Unless you want to document it well in the vendor/view model
Replying to
when in doubt, make observeOn as late as possible (I.e. as close to the UI control)
1
Replying to
1
1
@paulcbetts ObserveOn is ambiguous. 😉
Replying to
2






