tmandry / Swindler

macOS window management library for Swift
https://tmandry.github.io/Swindler/docs/main/
MIT License
690 stars 66 forks source link

Replace successes with PromiseKit's when #67

Open andreterron opened 4 years ago

andreterron commented 4 years ago

The successes function behavior can be achieved using PromiseKit's when(fulfilled:) and Promise.recover.

This reduces the need to keep up with the ids for errors, and means one less helper function to be maintained