AmA icon indicating copy to clipboard operation
AmA copied to clipboard

How will PromiseKit play along with Apple's new framework Combine?

Open flowtoolz opened this issue 5 years ago • 7 comments

With SwiftUI comes the full fledged reactive framework "Combine". Does this have any implications for PromiseKit? And what do you think of Combine?

flowtoolz avatar Jun 14 '19 12:06 flowtoolz

Promises are not similar to a reactive framework. Promises are for one time operations, combine is for continuous changes from model to data layer. I don’t see them having any overlap. PromiseKit will exist until Swift gets an async language feature.

mxcl avatar Jun 14 '19 14:06 mxcl

Thanks for the answer :)

I thought where the overlap might come is that Combine would be able to handle those one shot callbacks as well, like through this: https://developer.apple.com/documentation/combine/publishers/future

flowtoolz avatar Jun 14 '19 20:06 flowtoolz

Didn’t know about that. Well maybe PMK is dead then. Each individual user can make their own decision.

mxcl avatar Jun 15 '19 14:06 mxcl

PMK is certainly not dead. I feel it's simpler, easier to write, more pleasant to read, more focused and comes from its own angle. I'm just curious how both could complement each other. Maybe it makes sense to build Combine extensions for Promises, or the other way around, I have neither your depth of knowledge nor conceptual overview on this...

flowtoolz avatar Jun 15 '19 15:06 flowtoolz

Thanks for the answer :)

I thought where the overlap might come is that Combine would be able to handle those one shot callbacks as well, like through this: https://developer.apple.com/documentation/combine/publishers/future

The link is dead

rizwan95 avatar Oct 23 '19 06:10 rizwan95

Thanks for the answer :) I thought where the overlap might come is that Combine would be able to handle those one shot callbacks as well, like through this: https://developer.apple.com/documentation/combine/publishers/future

The link is dead lol :P

https://developer.apple.com/documentation/combine/future

flowtoolz avatar Oct 24 '19 16:10 flowtoolz

Promises are not similar to a reactive framework. Promises are for one time operations, combine is for continuous changes from model to data layer. I don’t see them having any overlap. ### PromiseKit will exist until Swift gets an async language feature.

https://docs.swift.org/swift-book/LanguageGuide/Concurrency.html

CristianCardosoArellano avatar Jul 13 '22 23:07 CristianCardosoArellano