If you used one of the convenience init
(with value:
, with error:
or with value:error:
), they now moved to Future
.
// Before
let future = Promise(value: 10).future
// Now
let future = Future(10)
// Before
let future = Promise(error: MyError.SomeError).future
// Now
let future = Future(MyError.SomeError)
// Before
let future = Promise(value: someOptionalInt, error: MyError.InvalidConversion).future
// Now
let future = Future(value: someOptionalInt, error: MyError.InvalidConversion)