Swiftpack.co - Package - koher/future-map

FutureMap

FutureMap provides operators for Future which return a Future instead of a Publisher.

let future: Future<Int, Never> = ...
let mapped: Future<Int, Never> = future.futureMap { $0 * $0 }
let cancellable = mapped.sink { value in
    print(value)
}

License

MIT

Github

link
Stars: 1

Dependencies

Used By

Total: 0

Releases

- 2020-09-14 06:42:13