I'm new to PromiseKit
however I can't get something very basic to work. Consider this:
func test1() -> Promise<Bool> {
return Promise<Bool>.value(true)
}
func test2() -> Promise<Bool> {
return Promise<Bool> { seal in
seal.fulfill(true)
}
}
func test3() -> Promise<Bool> {
return Promise<Bool>.value(true)
}
The following gives me the error on each line:
Cannot convert value of type
Promise<Bool>
to closure result typeGuarantee<()>
firstly {
test1()
}.then {
test2()
}.then {
test3()
}.done {
}.catch {
}
What am I doing wrong? I've been trying various combinations but nothing seems to work. I'm on PromiseKit 6.13
.