AmA icon indicating copy to clipboard operation
AmA copied to clipboard

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

Open codeface-io opened this issue 6 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?

codeface-io avatar Jun 14 '19 12:06 codeface-io

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

codeface-io avatar Jun 14 '19 20:06 codeface-io

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...

codeface-io avatar Jun 15 '19 15:06 codeface-io

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

codeface-io avatar Oct 24 '19 16:10 codeface-io

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

CrisCard0so avatar Jul 13 '22 23:07 CrisCard0so