DeclarativeHub / ReactiveKit

A Swift Reactive Programming Kit
MIT License
1.24k stars 114 forks source link

Add Future (Combine Style) Publisher/Signal #272

Closed ibrahimkteish closed 2 years ago

ibrahimkteish commented 3 years ago

Add Future publisher/Signal that eventually produces a single value and then finishes or fails.

Future<Int, Never> { callback in
     DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(1)) {
        callback(.success(42))
     }
  }
}

Combine

ibrahimkteish commented 3 years ago

@srdanrasic any update regarding this, I would like to have it in the library and remove it from my project.

JoeySlomowitz commented 3 years ago

These changes will greatly benefit my team transitioning to Combine. Would love to see this merged asap

JoeySlomowitz commented 3 years ago

@srdanrasic Pinging you here as I'm not seeing there's been any activity in this repo for many months. Can you please address this?

Alternatively, is there anyone else that can approve and merge this PR? @ibrahimkteish

ibrahimkteish commented 3 years ago

@JoeySlomowitz I dont think so, maybe @srdanrasic consider having others to have a write access to the repo so they can merge such PRs