diff --git a/Sources/Pwomise/Extensions/Promise+Publisher.swift b/Sources/Pwomise/Extensions/Promise+Publisher.swift new file mode 100644 index 0000000..b092e0b --- /dev/null +++ b/Sources/Pwomise/Extensions/Promise+Publisher.swift @@ -0,0 +1,18 @@ +//// File.swift +// +// +// Created by Eric Rabil on 9/17/21. +// +// + +import Foundation +import Combine + +@available(macOS 10.15, *) +public extension Promise { + var publisher: Future { + Future { resolve in + let _ = self.observeAlways(resolve) + } + } +}